Part Number Hot Search : 
HY62256A SHD11 25V10 DTA144 SHD11 471M1 Y7C15 82562
Product Description
Full Text Search
 

To Download PEB20550 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  ics for communications extended line card interface controller elic ? peb 20550 pef 20550 versions 1.3 users manual 01.96 t2055-0v13-m1-7600
edition 01.96 this edition was realized using the software system framemaker a . published by siemens ag, bereich halbleiter, marketing- kommunikation, balanstra?e 73, 81541 mnchen ? siemens ag 1996. all rights reserved. attention please! as far as patents or other rights of third par- ties are concerned, liability is only assumed for components, not for applications, pro- cesses and circuits implemented within com- ponents or assemblies. the information describes the type of compo- nent and shall not be considered as assured characteristics. terms of delivery and rights to change design reserved. for questions on technology, delivery and prices please contact the semiconductor group offices in germany or the siemens companies and representatives worldwide (see address list). due to technical requirements components may contain dangerous substances. for in- formation on the types in question please contact your nearest siemens office, semi- conductor group. siemens ag is an approved cecc manufac- turer. packing please use the recycling operators known to you. we can also help you C get in touch with your nearest sales office. by agreement we will take packing material back, if it is sorted. you must bear the costs of transport. for packing material that is returned to us un- sorted or which we are not obliged to accept, we shall have to invoice you for any costs in- curred. components used in life-support devices or systems must be expressly authorized for such purpose! critical components 1 of the semiconductor group of siemens ag, may only be used in life-support devices or systems 2 with the ex- press written approval of the semiconductor group of siemens ag. 1 a critical component is a component used in a life-support device or system whose failure can reasonably be expected to cause the failure of that life-support de- vice or system, or to affect its safety or ef- fectiveness of that device or system. 2 life support devices or systems are in- tended (a) to be implanted in the human body, or (b) to support and/or maintain and sustain human life. if they fail, it is reasonable to assume that the health of the user may be endangered.
peb 20550 pef 20550 revision history: users manual 01.96 previous release: technical manual 9.93 page (in previous release) page (in users manual) subjects (major changes since last revision) - 13 pef 20550 (ext. temperature range; new) - 38 system integration and application (dect added) 29 46 boundary scan number 22 = 110 (correction) 29 46 boundary scan number 9: id code for v1.3 added 31 49 boundary scan id code for v1.3 added - 57 dma-transfers, figure 31 (new) - 60 support of the hdlc protocol by sacco, figure 35 (new) 51 76 sacco clock mode 2 description (extended) 53 80 extensions for v1.3 55 82 arbiter state machine description (extended) 58 85 table 14: control channel delay examples (extended) 65 95 internal reference clock rcl replaced by cfi reference clock crcl - 101 interrupt driven transmission sequence example, figure 50 (new) 82 114 internal reference clock rcl replaced by cfi reference clock crcl 85 118 register address arrangement (extended) - 129 emod: ecmd2 restriction 5 (new) 93 130 pmod: pmd1..0 description (data rate stepping corrected) 101 140 cmd2: cxf, crr description (corrected) 104 144 macr description (extended) 114 154 timr: ssr (correction) 121 162 vnsr: vn3..0 = v1.2 (correction) 124 167 exir: xmr description (extended) 128 172 ccr1: ods description (extended for v1.3) 132 177 sacco rsta: c/r description (new) 140 185 vstr: vn3..0 value for v1.3 added 142 187 scv: scv7...0 description (extended) - 191 application hints (new) 148 380 t als min = 8 ns, t drh max = 65 ns, t ah min = 0 ns (correction) - 395 package outlines (new) - 396 appendix (new)
peb 20550 table of contents page semiconductor group 4 01.96 1overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11 1.1 features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .13 1.2 pin configuration (top view) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .15 1.3 pin definitions and functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .16 1.4 logic symbol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .23 1.5 functional block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .24 1.6 system integration and application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .25 1.6.1 digital line card . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .25 1.6.1.1 switching, layer-1 control, group controller signaling . . . . . . . . . . . . . .25 1.6.1.2 decentralized d-channel processing, multiplexed hdlc-controller. . . . .27 1.6.1.3 decentralized d-channel processing, dedicated hdlc-controller per subscriber . . . . . . . . . . . . . . . . . . . . . . .31 1.6.1.4 decentralized d-channel processing, multiplexed plus dedicated hdlc-control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .31 1.6.1.5 central d-channel processing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .33 1.6.1.6 mixed d-channel processing, signaling decentralized, packet data centralized . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .34 1.6.2 key systems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .36 1.6.3 analog line card . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .37 1.6.4 dect applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .38 1.6.4.1 adaptation of a dect system to an existing pbx . . . . . . . . . . . . . . . . . .38 1.6.4.2 dect line card design for an existing pbx . . . . . . . . . . . . . . . . . . . . . .40 2 functional description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .41 2.1 general functions and device architecture . . . . . . . . . . . . . . . . . . . . . . .41 2.2 functional blocks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .41 2.2.1 bus interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .41 2.2.2 parallel ports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .42 2.2.3 watchdog timer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .43 2.2.4 reset logic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .43 2.2.5 boundary scan support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .45 2.2.5.1 boundary scan . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .45 2.2.5.2 tap-controller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .48 2.2.6 epic ?-1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .49 2.2.6.1 pcm-interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .49 2.2.6.2 configurable interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .50 2.2.6.3 memory structure and switching . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .50 2.2.6.4 pre-processed channels, layer-1 support . . . . . . . . . . . . . . . . . . . . . . . .51 2.2.6.5 special functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .52 2.2.7 sacco . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .52 2.2.7.1 block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .52 2.2.7.2 parallel interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .53 2.2.7.3 fifo-structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .57
peb 20550 table of contents page semiconductor group 5 01.96 2.2.7.4 protocol support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .60 2.2.7.5 special functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .75 2.2.7.6 serial interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .76 2.2.7.7 serial port configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .79 2.2.7.8 test mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .80 2.2.8 d-channel arbiter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .81 2.2.8.1 upstream direction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .82 2.2.8.2 downstream direction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .86 2.2.8.3 control channel delay . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .87 2.2.8.4 d-channel arbiter co-operating with quat-s circuits . . . . . . . . . . . . . . .88 3 operational description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .89 3.1 microprocessor interface operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . .89 3.2 interrupt structure and logic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .90 3.3 clocking . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .91 3.4 reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .92 3.5 epic ?-1 operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .92 3.5.1 pcm-interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .93 3.5.2 configurable interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .94 3.5.3 switching functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .95 3.5.4 special functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .99 3.6 sacco-a/b . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .99 3.6.1 data transmission in interrupt mode . . . . . . . . . . . . . . . . . . . . . . . . . . . .99 3.6.2 data transmission in dma-mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .101 3.6.3 data reception in interrupt mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .102 3.6.4 data reception in dma-mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .103 3.7 d-channel arbiter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .104 3.7.1 sacco-a transmission . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .104 3.7.2 sacco-a reception . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .105 3.8 initialization procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .106 3.8.1 hardware reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .106 3.8.2 epic?-1 initialization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .106 3.8.2.1 register initialization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .106 3.8.2.2 control memory reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .106 3.8.2.3 initialization of pre-processed channels . . . . . . . . . . . . . . . . . . . . . . . . .107 3.8.2.4 initialization of the upstream data memory (dm) tristate field . . . . . . .109 3.8.3 sacco-initialization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .109 3.8.4 initialization of d-channel arbiter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .111 3.8.5 activation of the pcm- and cfi-interfaces . . . . . . . . . . . . . . . . . . . . . . .112 3.8.6 initialization example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .113 3.8.6.1 epic?-1 initialization example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .114 3.8.6.2 sacco-a initialization example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .116 3.8.6.3 d-channel arbiter initialization example . . . . . . . . . . . . . . . . . . . . . . . . .116
peb 20550 table of contents page semiconductor group 6 01.96 3.8.6.4 pcm- and cfi-interface activation example . . . . . . . . . . . . . . . . . . . . . .117 3.8.6.5 sacco-b initialization example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .117 4 detailed register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .118 4.1 register address arrangement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .118 4.2 interrupt top level . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .124 4.2.1 interrupt status register (ista) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .124 4.2.2 mask register (mask) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .125 4.3 parallel ports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .126 4.3.1 port0 data register (port0) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .126 4.3.2 port1 data register (port1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .126 4.3.3 port1 configuration register (pcon1) . . . . . . . . . . . . . . . . . . . . . . . . . .127 4.4 watchdog timer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .127 4.4.1 watchdog control register (wtc) . . . . . . . . . . . . . . . . . . . . . . . . . . . . .127 4.5 elic ? mode register / version number register (emod) . . . . . . . . . .128 4.6 epic?-1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .130 4.6.1 pcm-mode register (pmod) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .130 4.6.2 bit number per pcm-frame (pbnr) . . . . . . . . . . . . . . . . . . . . . . . . . . .132 4.6.3 pcm-offset downstream register (pofd) . . . . . . . . . . . . . . . . . . . . . . .132 4.6.4 pcm-offset upstream register (pofu) . . . . . . . . . . . . . . . . . . . . . . . . .133 4.6.5 pcm-clock shift register (pcsr) . . . . . . . . . . . . . . . . . . . . . . . . . . . . .134 4.6.6 pcm-input comparison mismatch (picm) . . . . . . . . . . . . . . . . . . . . . . .135 4.6.7 configurable interface mode register 1 (cmd1) . . . . . . . . . . . . . . . . . .136 4.6.8 configurable interface mode register 2 (cmd2) . . . . . . . . . . . . . . . . . .138 4.6.9 configurable interface bit number register (cbnr) . . . . . . . . . . . . . . .141 4.6.10 configurable interface time slot adjustment register (ctar) . . . . . . .141 4.6.11 configurable interface bit shift register (cbsr) . . . . . . . . . . . . . . . . . .142 4.6.12 configurable interface subchannel register (cscr) . . . . . . . . . . . . . . .143 4.6.13 memory access control register (macr) . . . . . . . . . . . . . . . . . . . . . . .144 4.6.14 memory access address register (maar) . . . . . . . . . . . . . . . . . . . . . . .147 4.6.15 memory access data register (madr) . . . . . . . . . . . . . . . . . . . . . . . . .148 4.6.16 synchronous transfer data register (stda) . . . . . . . . . . . . . . . . . . . . .148 4.6.17 synchronous transfer data register b (stdb) . . . . . . . . . . . . . . . . . . .149 4.6.18 synchronous transfer receive address register a (sara) . . . . . . . . .149 4.6.19 synchronous transfer receive address register b (sarb) . . . . . . . . .150 4.6.20 synchronous transfer transmit address register a (saxa) . . . . . . . . .150 4.6.21 synchronous transfer transmit address register b (saxb) . . . . . . . . .151 4.6.22 synchronous transfer control register (stcr) . . . . . . . . . . . . . . . . . . .151 4.6.23 mf-channel active indication register (mfair) . . . . . . . . . . . . . . . . . . .152 4.6.24 mf-channel subscriber address register (mfsar) . . . . . . . . . . . . . . .153 4.6.25 monitor/feature control channel fifo (mffifo) . . . . . . . . . . . . . . . . .153 4.6.26 signaling fifo (cififo) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .154 4.6.27 timer register (timr) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .154
peb 20550 table of contents page semiconductor group 7 01.96 4.6.28 status register epic ?-1 (star_e) . . . . . . . . . . . . . . . . . . . . . . . . . . . .155 4.6.29 command register epic?-1 (cmdr_e) . . . . . . . . . . . . . . . . . . . . . . . .156 4.6.30 interrupt status register epic?-1 (ista_e) . . . . . . . . . . . . . . . . . . . . . .158 4.6.31 mask register epic ? -1 (mask_e) . . . . . . . . . . . . . . . . . . . . . . . . . . . . .159 4.6.32 operation mode register (omdr) . . . . . . . . . . . . . . . . . . . . . . . . . . . . .160 4.6.33 version number status register (vnsr) . . . . . . . . . . . . . . . . . . . . . . . .162 4.7 sacco . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .163 4.7.1 receive fifo (rfifo) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .163 4.7.2 transmit fifo (xfifo) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .164 4.7.3 interrupt status register (ista_a/b) . . . . . . . . . . . . . . . . . . . . . . . . . . .165 4.7.4 mask register (mask_a/b) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .166 4.7.5 extended interrupt register (exir_a/b) . . . . . . . . . . . . . . . . . . . . . . . . .166 4.7.6 command register (cmdr) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .168 4.7.7 mode register (mode) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .170 4.7.8 channel configuration register 1 (ccr1) . . . . . . . . . . . . . . . . . . . . . . .171 4.7.9 channel configuration register 2 (ccr2) . . . . . . . . . . . . . . . . . . . . . . .173 4.7.10 receive length check register (rlcr) . . . . . . . . . . . . . . . . . . . . . . . . .174 4.7.11 status register (star) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .175 4.7.12 receive status register (rsta) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .176 4.7.13 receive hdlc-control register (rhcr) . . . . . . . . . . . . . . . . . . . . . . . .178 4.7.14 transmit address byte 1 (xad1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .178 4.7.15 transmit address byte 2 (xad2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .179 4.7.16 receive address byte low register 1 (ral1) . . . . . . . . . . . . . . . . . . . .179 4.7.17 receive address byte low register 2 (ral2) . . . . . . . . . . . . . . . . . . . .180 4.7.18 receive address byte high register 1 (rah1) . . . . . . . . . . . . . . . . . . .180 4.7.19 receive address byte high register 2 (rah2) . . . . . . . . . . . . . . . . . . .181 4.7.20 receive byte count low (rbcl) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .181 4.7.21 receive byte count high (rbch) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .182 4.7.22 transmit byte count low (xbcl) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .182 4.7.23 transmit byte count high (xbch) . . . . . . . . . . . . . . . . . . . . . . . . . . . . .183 4.7.24 time slot assignment register transmit (tsax) . . . . . . . . . . . . . . . . . .183 4.7.25 time slot assignment register receive (tsar) . . . . . . . . . . . . . . . . . .184 4.7.26 transmit channel capacity register (xccr) . . . . . . . . . . . . . . . . . . . . .184 4.7.27 receive channel capacity register (rccr) . . . . . . . . . . . . . . . . . . . . .185 4.7.28 version status register (vstr) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .185 4.8 d-channel arbiter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .186 4.8.1 arbiter mode register (amo) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .186 4.8.2 arbiter state register (astate) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .187 4.8.3 suspend counter value register (scv) . . . . . . . . . . . . . . . . . . . . . . . . .187 4.8.4 d-channel enable register iom-port 0 (dce0) . . . . . . . . . . . . . . . . . . .188 4.8.5 d-channel enable register iom-port 1 (dce1) . . . . . . . . . . . . . . . . . . .188 4.8.6 d-channel enable register iom-port 2 (dce2) . . . . . . . . . . . . . . . . . . .188
peb 20550 table of contents page semiconductor group 8 01.96 4.8.7 d-channel enable register iom-port 3 (dce3) . . . . . . . . . . . . . . . . . . .189 4.8.8 transmit d-channel address register (xdc) . . . . . . . . . . . . . . . . . . . . .189 4.8.9 broadcast group iom-port 0 (bcg0) . . . . . . . . . . . . . . . . . . . . . . . . . . .190 4.8.10 broadcast group iom-port 1 (bcg1) . . . . . . . . . . . . . . . . . . . . . . . . . . .190 4.8.11 broadcast group iom-port 2 (bcg2) . . . . . . . . . . . . . . . . . . . . . . . . . . .190 4.8.12 broadcast group iom-port 3 (bcg3) . . . . . . . . . . . . . . . . . . . . . . . . . . .190 5 application hints . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .191 5.1 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .191 5.1.1 iom ? and sld functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .191 5.2 configuration of interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .198 5.2.1 pcm interface configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .198 5.2.1.1 pcm interface signals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .198 5.2.1.2 pcm interface registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .198 5.2.1.3 pcm interface characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .199 5.2.2 configurable interface configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . .211 5.2.2.1 cfi interface signals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .211 5.2.2.2 cfi registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .211 5.2.2.3 cfi characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .213 5.3 data and control memories . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .239 5.3.1 memory structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .239 5.3.2 indirect register access . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .240 5.3.3 memory access commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .244 5.3.3.1 access to the data memory data field . . . . . . . . . . . . . . . . . . . . . . . . . .244 5.3.3.2 access to the data memory code (tristate) field . . . . . . . . . . . . . . . . . .248 5.3.3.3 access to the control memory data field . . . . . . . . . . . . . . . . . . . . . . . .251 5.3.3.4 access to the control memory code field . . . . . . . . . . . . . . . . . . . . . . .253 5.4 switched channels . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .260 5.4.1 cfi - pcm timeslot assignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .261 5.4.2 subchannel switching . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .265 5.4.3 loops . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .270 5.4.3.1 cfi - cfi loops . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .270 5.4.3.2 pcm - pcm loops . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .273 5.4.4 switching delays . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .275 5.4.4.1 internal procedures at the serial interfaces . . . . . . . . . . . . . . . . . . . . . .276 5.4.4.2 how to determine the delay . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .279 5.4.4.3 example: switching of wide band isdn channels with the elic ? . . . . . . 281 5.5 preprocessed channels . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .284 5.5.1 initialization of preprocessed channels . . . . . . . . . . . . . . . . . . . . . . . . .285 5.5.2 control/signaling (cs) handler . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .298 5.5.2.1 registers used in conjunction with the cs handler . . . . . . . . . . . . . . . .299 5.5.2.2 access to downstream c/i and sig channels . . . . . . . . . . . . . . . . . . . .301 5.5.2.3 access to the upstream c/i and sig channels . . . . . . . . . . . . . . . . . . .302
peb 20550 table of contents page semiconductor group 9 01.96 5.5.3 monitor/feature control (mf) handler . . . . . . . . . . . . . . . . . . . . . . . . . .304 5.5.3.1 registers used in conjunction with the mf handler . . . . . . . . . . . . . . . .306 5.5.3.2 description of the mf channel commands . . . . . . . . . . . . . . . . . . . . . . .311 5.6 m p channels . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .319 5.7 synchronous transfer utility . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .323 5.7.1 registers used in conjunction with the synchronous transfer utility . . .326 5.8 supervision functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .331 5.8.1 hardware timer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .331 5.8.2 pcm input comparison . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .333 5.8.3 pcm framing supervision . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .336 5.8.4 power and clock supply supervision/chip version . . . . . . . . . . . . . . . .338 5.9 applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .339 5.9.1 analog iom ?-2 line card with sicofi?-4 as codec/filter device . . . .339 5.9.2 iom ? -2 trunk line applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .343 5.9.2.1 pbx with multiple isdn trunk lines . . . . . . . . . . . . . . . . . . . . . . . . . . .344 5.9.2.2 small pbx . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .349 5.9.3 miscellaneous . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .351 5.9.3.1 interfacing the elic ? to a musac ? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 351 5.9.3.2 space and time switch for 16 kbit/s channels . . . . . . . . . . . . . . . . . . . .353 6 application notes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .355 6.1 example of elic? operation in a digital pbx . . . . . . . . . . . . . . . . . . . .355 6.1.1 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .355 6.1.2 basic initialization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .356 6.1.2.1 epic? interface initialization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .357 6.1.2.2 sacco-a initialization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .357 6.1.2.3 basic d-channel arbiter initialization . . . . . . . . . . . . . . . . . . . . . . . . . . .358 6.1.2.4 sacco-b initialization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .358 6.1.3 elic? cm and octat-p initialization . . . . . . . . . . . . . . . . . . . . . . . . . .359 6.1.3.1 resetting the cm . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .360 6.1.3.2 initializing the cm . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .360 6.1.3.3 cfi activation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .361 6.1.3.4 pcm interface activation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .361 6.1.3.5 deactivating the octat-p . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .361 6.1.4 line activation by subscriber a . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .362 6.1.4.1 handling of c/i interrupt . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .362 6.1.4.2 confirmation of line activation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .363 6.1.4.3 enabling the arbiter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .363 6.1.4.4 build-up of layer 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .363 6.1.4.5 build-up of layer 3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .364 6.1.5 dialling the desired link . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .364 6.1.5.1 reception of dialled numbers at sacco-a . . . . . . . . . . . . . . . . . . . . . .364 6.1.5.2 preparing to loop data from terminal a to terminal b . . . . . . . . . . . . .365
peb 20550 table of contents page semiconductor group 10 01.96 6.1.6 calling up subscriber b . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .365 6.1.6.1 activating the line to subscriber b . . . . . . . . . . . . . . . . . . . . . . . . . . . . .365 6.1.6.2 enabling the arbiter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .366 6.1.6.3 build-up of layer 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .366 6.1.6.4 build-up of layer 3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .367 6.1.7 completing the call . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .367 6.1.7.1 receiving the hook-off information at the elic ? . . . . . . . . . . . . . . . . . .367 6.1.7.2 closing the data loop . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .368 6.1.7.3 giving both terminals the go-ahead to transceive data . . . . . . . . . . .368 6.2 d-channel delay due to arbitration . . . . . . . . . . . . . . . . . . . . . . . . . . . .369 6.3 behaviour of the sacco-a when a rfifo overflow occurs . . . . . . . . .375 7 electrical characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .377 8 package outlines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .395 9 appendix . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .396 9.1 differences between epic?-1 (peb 2055) and the elic?-epic? . . . .396 9.2 working sheets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .396 9.2.1 register summary for epic? initialization . . . . . . . . . . . . . . . . . . . . . . .397 9.2.2 switching of pcm time slots to the cfi interface (data downstream) . .401 9.2.3 switching of cfi time slots to the pcm interface (data upstream) . . . .402 9.2.4 preparing epic?s c/i channels . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .403 9.2.5 receiving and transmitting iom?-2 c/i-codes . . . . . . . . . . . . . . . . . . .404 9.3 development tools . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .405 9.3.1 sipb 5000 mainboard . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .405 9.3.2 sipb 5122 iom?-2 line card module (elic?) . . . . . . . . . . . . . . . . . . .406 10 lists . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .407 10.1 glossary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .407 iom ? , iom ? -1, iom ? -2, sicofi ? , sicofi ? -2, sicofi ? -4, sicofi ? -4c, slicofi ? , arcofi ? , arcofi ? -ba, arcofi ? -sp, epic ? -1, epic ? -s, elic ? , ipat ? -2, itac ? , isac ? -s, isac ? -s te, isac ? -p, isac ? -p te, idec ? , sicat ? , octat ? -p, quat ? -s are registered trademarks of siemens ag. musac ? -a, falc ? 54, iwe ? , sare ? , utpt ? , asm ? , asp ? are trademarks of siemens ag. purchase of siemens i 2 c components conveys a license under the philips i 2 c patent to use the components in the i 2 c-system provided the system conforms to the i 2 c specifications defined by philips. copyright philips 1983.
peb 20550 pef 20550 overview semiconductor group 11 01.96 1overview the peb 20550 ( e xtended li ne card c ontroller) is a highly integrated controller circuit optimized for line card and key system applications. it combines all functional blocks necessary to manage up to 32 digital (isdn or proprietary) or 64 analog subscribers. the switching and layer-1 control capability of the epic-1 (peb 2055) constitutes a major functional block of the elic. for layer-2 support, two independent special application communication controllers (sacco) are available. one typically handles the communication with the group controller, the other is used to serve the subscriber terminals. a d-channel arbiter is employed to multiplex the hdlc controller between multiple subscribers while maintaining full duplex signaling protocols (e.g. lapd). additionally, typical line card glue logic functions such as a power-up reset generator, a watchdog timer and two parallel ports are integrated. the elic is implemented in a siemens advanced 1.0- m m cmos-technology and manufactured in a p-mqfp-80-1 package. the elic is a member of a new chip family supporting d-channel multiplexing on the line card and in the subscriber terminal. this concept allows an highly economical implementation of digital subscriber lines. chip family line cards: peb 20550 extended line card controller (elic) peb 2096 octal u pn transceiver (octat-p) peb 2095 isdn burst transceiver circuit (ibc) peb 2084 quad s 0 transceiver (quat-s) peb 2465 quad dsp based codec filter (sicofi-4) peb 2075 isdn d-channel exchange controller (idec) terminals: psb 2196 digital subscriber access controller (isac-p te) for u pn interface peb 2081 (v3.2) s/t-bus interface circuit extended (sbcx)
peb 20550 pef 20550 overview semiconductor group 12 01.96 figure 1 example for an integrated analog / digital pbx itb05392 quat-s peb 2084 peb 2096 octat -p sicofi -4 peb 2465 slic slic r/t 2048 kbit/s elic d arbiter sacco-a cfi 00 pcm 1 2 3 peb 20550 t ss peb 2075 idec memory p 4 x d cannel p interface pn u te 7 te 0 te 1 te 16 8 x s 8 x u pn 16 x t/r 0 7 8 x t co sacco-b r s 0 r te 0 te 7 pcm 2084 peb quat-s signaling iom -2 r r r iom -2 r iom -2 r
p-mqfp-80-1 semiconductor group 13 01.96 extended line card interface controller elic ? peb 20550 pef 20550 versions 1.3 cmos type ordering code package peb 20550 q67101-h6484 p-mqfp-80-1 (smd) pef 20550 q67101-h6605 p-mqfp-80-1 (smd) 1.1 features switching (epic ? -1) ? non-blocking switch for 32 digital (e.g. isdn) or 64 voice subscribers C bandwidth 16, 32, or 64 kbit/s C two consecutive 64-bit/s channels can be switched as a single 128-kbit/s channel ? freely programmable time slot assignment for all subscribers ? synchronous m p-access to two selected channels ? two types of serial interfaces independently programmable over a wide data range (128 - 8192 kbit/s) Cpcm-interface tristate control signals for external drivers programmable clock shift single or double data clock C configurable interface configurable for iom-, sld- and pcm-applications high degree of flexibility for datastream adaption programmable clockshift single or double data clock
peb 20550 pef 20550 overview semiconductor group 14 01.96 handling of layer-1 functions (epic ? -1) ? change detection for c/i-channel (iom-configuration) or feature control (sld-configuration) ? additional last-look logic for feature control (sld-configuration) ? buffered monitor (iom-configuration) or signaling channel (sld-configuration) handling of layer-2 functions (sacco) ? two independent full duplex hdlc-channels C serial interface data rate up to 4 mbit/s independent time slot assignment for each channel with programmable time slot length (1-256 bits) support of bus configuration with collision resolution continuous transmission of 1 to 32 bytes possible C protocol support auto-mode, fully compatible to peb 2050 (pbc) protocol non-auto mode, address recognition capability transparent mode, hdlc-framing only extended transparent mode, fully transparent without hdlc-framing C 64-bytes fifos per hdlc-channel and direction d-channel multiplexing (d-channel arbiter) ? serving of multiple subscribers with one hdlc-controller ? full duplex signaling protocols (e.g. lapd or proprietary) supported ? programmable priority scheme ? broadcast transmission line card glue logic ? power-up reset generator ? watchdog timer ? parallel ports (8-bit input, 4-bit i/o) boundary scan support ? fully ieee 1149.1 compatible ? 32-bit device identification register bus interface ? siemens/intel or motorola type m p-interface ? 8-bit demultiplexed bus interface ? fifo-access interrupt or dma controlled
peb 20550 pef 20550 overview semiconductor group 15 01.96 1.2 pin configuration (top view) figure 2 48 13 dcl ad0, d0 72 79 78 77 76 75 74 73 80 ss v 3 txd0 rxd0 1 tsc0 2 tsc2 txd1 5 tsc1 4 68 tsc3 txd2 7 txd3 9 11 ss v pfs 10 12 71 70 p0.7, a7 rd, cse css r/w ale wr, dd v ds int p0.5, a5 p0.6, a6 p0.4, a4 58 dackb 59 60 drqrb dacka 55 56 57 dd2/sip2 dd3/sip3 dd1/sip1 elic peb 20550 r 52 53 54 du3/sip7 dd0/sip0 v ss 49 50 51 du1/sip5 du0/sip4 29 hfsa 19 p0.2, a2 16 tms 14 tck tdo tdi 15 p0.1, a1 p0.0, a0 17 18 p0.3, a3 20 itp05803 21 22 23 24 25 26 27 28 rxda drqta drqra drqtb hdca tsca txda cxda 42 p1.1 45 resin 46 47 fsc resex 43 44 p1.3 p1.2 37 ss v 33 31 30 32 35 34 36 tscb dd hdcb hfsb v rxdb cxdb txdb 41 39 38 40 p1.0 rxd rxd rxd 2 3 1 63 70 69 68 67 66 64 65 61 62 pdc du2/sip6 ad1, d1 ad2, d2 ad3, d3 ad4, d4 ad5, d5 ad6, d6 ad7, d7
peb 20550 pef 20550 overview semiconductor group 16 01.96 1.3 pin definitions and functions m -processor interface pin no. symbol input (i) output (o) function 6cse i c hip s elect epic-1 ; active low. a "low" on this line selects all registers (excluding the sacco- registers) for read/write operations. 7css i c hip s elect sacco ; active low. a "low" on this line selects the sacco-registers for read/write operations. 8wr , r/w i w rite, active low, siemens/intel bus mode. when "low", a write operation is indicated. r ead/ w rite, motorola bus mode. when "high" a valid m p-access identifies a read operation, when "low" it identifies a write access. 9rd , ds i r ead, active low, siemens/intel bus mode. when "low" a read operation is indicated. d ata s trobe, motorola bus mode. a rising edge marks the end of a read or write operation. 12 13 14 15 16 17 18 19 ad0, d0 ad1, d1 ad2, d2 ad3, d3 ad4, d4 ad5, d5 ad6, d6 ad7, d7 i/o i/o i/o i/o i/o i/o i/o i/o a ddress/ d ata b us; multiplexed bus mode. transfers addresses from the m p-system to the elic and data between the m p and the elic. d ata b us; demultiplexed bus mode. transfers data between the m p and the elic. when driving data the pins have push pull characteristic, otherwise they are in the state high impedance. 10 ale i a ddress l atch e nable ale controls the on chip address latch in multiplexed bus mode. while ale is "high", the latch is transparent. the falling edge latches the current address. during the first read/write access following reset ale is evaluated to select the bus mode.
peb 20550 pef 20550 overview semiconductor group 17 01.96 pin definitions and functions (contd) m -processor interface pin no. symbol input (i) output (o) function 77 78 79 80 1 2 3 4 p0.0,a0 p0.1,a1 p0.2,a2 p0.3,a3 p0.4,a4 p0.5,a5 p0.6,a6 p0.7,a7 i i i i i i i i a ddress b us, demultiplexed bus mode. transfers addresses from the m p-system to the elic. p ort 0 , multiplexed bus mode. parallel input port. the current data is latched with the falling edge of rd , ds. 21 22 23 24 p1.0 p1.1 p1.2 p1.3 i/o i/o i/o i/o p ort 1 4-bit i/o port. every pin can be configured individually as input or output. for inputs the current data is latched with the falling edge of rd , ds. 5int o (od) i nterrupt r equest, active low. this signal is activated when the elic requests an interrupt. due to the open drain (od) characteristic of int multiple interrupt sources can be connected together. 25 resin o r eset i ndication this pin is set to "high", when the elic executes either a power-up reset, a watchdog timer reset, an external reset (resex) or a software system reset. 26 resex i r eset e xternal a "high" forces the elic into reset state.
peb 20550 pef 20550 overview semiconductor group 18 01.96 pin definitions and functions (contd) epic ? -1 interface pin no. symbol input (i) output (o) function 70 pfs i pcm - i nterface f rames s ynchronization 71 pdc i pcm - i nterface d ata c lock single or double data rate. 61 60 59 58 rxd0 rxd1 rxd2 rxd3 i i i i r eceive pcm - i nterface d ata time-slot oriented data is received on this pins and forwarded into the downstream data memory of the epic-1. 63 65 67 69 txd0 txd1 txd2 txd3 o o o o t ransmit pcm - i nterface d ata time-slot oriented data is shifted out of the epic-1s upstream data memory on this lines. for time-slots which are flagged in the tristate data memory or when bit omdr:psb is reset the pins are set in the state high impedance. 62 64 66 68 tsc0 tsc1 tsc2 tsc3 o o o o t ristate c ontrol supplies a control signal for an external driver. these lines are "low" when the corresponding txd-outputs are valid. during reset these lines are "high". 27 fsc i/o f rame s ynchronization input or output in iom-configuration. direction indication signal in sld-mode. 28 dcl i/o d ata c lock input or output in iom, slave clock in sld configuration. in iom-configuration single or double data rate, single data rate in sld-mode.
peb 20550 pef 20550 overview semiconductor group 19 01.96 pin definitions and functions (contd) epic ? -1 interface pin no. symbol input (i) output (o) function 29 30 32 33 du0/sip4 du1/sip5 du2/sip6 du3/sip7 i/io (od) i/io (od) i/io (od) i/io (od) d ata u pstream input; iom- or pcm-configuration. s erial i nterface p ort, sld-configuration. depending on the bit omdr:cos these lines have push pull or open drain characteristic. for unassigned channels or when bit omdr:csb is reset the pins are in the state high impedance. 34 35 36 37 dd0/sip0 dd1/sip1 dd2/sip2 dd3/sip3 o/io (od) o/io (od) o/io (od) o/io (od) d ata d ownstream output, iom- or pcm- configuration. s erial i nterface p ort, sld-configuration. depending on the bit omdr:cos these lines have push pull or open drain characteristic. for unassigned channels or when bit omdr:csb is reset the pins are in the state high impedance.
peb 20550 pef 20550 overview semiconductor group 20 01.96 pin definitions and functions (contd) sacco-interface pin no. symbol input (i) output (o) function 49 50 hfsa hfsb i i h dlc-interface f rame s ynchronization channel a/b frame synchronization pulse in clock mode 2, data strobe in clock mode 1. 48 52 hdca hdcb i i h dlc-interface d ata c lock c hannel a/b . single or double data rate. 44 56 rxda rxdb i i r eceive s erial d ata hdlc - c hannel a/b the serial data received on this lines is forwarded into the corresponding hdlc-receive channel. data is sampled on the C falling edge of hdc (ccr2:rds = 0) or C rising edge of hdc (ccr2:rds = 1). 46 54 txda txdb o (od) o (od) t ransmit s erial d ata hdlc - c hannel a/b . data output lines of the corresponding hdlc- transmit channel. depending on the bit ccr1:ods the pins have push pull or open drain characteristic. when transmission is disabled (tsca or b = 1) or when bit ccr2:txde is reset the pins are in the state high impedance. 47 53 tsca tscb o o t ristate c ontrol hdlc - c hannel a/b , active low. supplies a control signal for an external driver. when low the corresponding txd-outputs are valid. the detailed functionality is defined programming the sacco-registers ccr2:soc1,soc0. during reset these lines are high. 45 55 cxda cxdb i i c ollision d ata hdlc - c hannel a/b in a bus configuration, the external serial bus must be connected to the respective cxd-pin for collision detection. in point-to-point configurations the pin provides a "clear to send" function. when '0'/'1' the transmit channel is enabled/disabled. if this function is not needed cxda/b has to be tied to v ss .
peb 20550 pef 20550 overview semiconductor group 21 01.96 42 40 drqra drqrb o o dma - r equest r eceiver c hannel a/b the receiver of hdlc-channel a/b requests a dma-data transfer by activating this lines. the drqr-pin remains "high" as long as the receiver fifo requires data transfers. only blocks of 32, 16, 8 or 4 bytes are transferred. 43 41 drqta drqtb o o dma - r equest t ransmitter c hannel a/b the transmitter of hdlc-channel a/b requests a dma-data transfer by activating this lines. the drqt-pin remains "high" as long as the transmit fifo requires data transfers. the number of data bytes to be transferred from system memory to the fifo must be written first into the xbch, xbcl registers (byte count registers). 39 38 dacka dackb i i dma - a cknowledge hdlc -channel a/b , active low. when "low", this lines notifies the hdlc-channel, that the requested dma-cycle is in progress. together with rd (drqr) or wr (drqt) dack works like cs to enable a read or write operation to the top of the receive or the transmit fifo. when dack is active, the address lines are ignored and the fifos are implicitly selected. when dack is not used it has to be connected to v dd . pin definitions and functions (contd) sacco-interface pin no. symbol input (i) output (o) function
peb 20550 pef 20550 overview semiconductor group 22 01.96 pin definitions and functions (contd) boundary scan interface, according to ieee std. 1149.1 note: pin 75 (tdi) and pin 76 (tms) are internally connected to v dd via pull-up resistors. pin no. symbol input (i) output (o) function 76 tms i (internal pull-up) t est m ode s elect a 0 -> 1 transition on this pin is required to step through the tap-controller state machine. 75 tdi i (internal pull-up) t est d ata i nput in the appropriate tap-controller state test data or a instruction is shifted in via this line 74 tdo o t est d ata o utput in the appropriate tap-controller state test data or a instruction is shifted out via this line. 73 tck i t est c lock single rate test data clock.
peb 20550 pef 20550 overview semiconductor group 23 01.96 1.4 logic symbol figure 3 fsc hfsb hdcb cxdb txdb tscb dackb 0 elic itl05804 rxdb drqtb drqrb dcl dd du resex resin p 1.0-1.3 p 0.0-0.7, a 0-7 d 0-7 ad 0-7, pfs 0 pdc 0 1 1 1 2 2 2 3 3 3 drqra drqta dacka tsca txda cxda rxda hdca hfsa tms tck tdi tdo 0 0 1 1 du dd 2 2 du dd 3 3 du dd int cse css txd rxd rxd txd rxd txd rxd txd tsc r pcm highway 0 highway 1 pcm pcm highway 2 pcm highway 3 hdlc channel a dma interface channel a boundary scan interface cfi port 0 port 1 cfi port 2 cfi port 3 cfi hdlc channel b channel b interface dma bus interface ale wr, r or rd, wds tsc tsc tsc
peb 20550 pef 20550 overview semiconductor group 24 01.96 1.5 functional block diagram figure 4 itb05805 boundary scan controller tms tck tdi tdo resin resex generator reset powerup timer watch dog sacco-b serial interface b sacco-a d-channel arbiter port 3 fsc dcl epic -1 pfc pdc pcm pcm pcm pcm highway 0 bus interface unit dma interface a int cse css ale rd wr, p 0.0-7, a 0-7 d 0-7 ad 0-7, p 1.0-1.3 iom -2 ds r or wr r r serial interface a interface b dma r iom -2 port 2 r iom -2 port 1 r iom -2 port 0 highway 1 highway 2 highway 3
peb 20550 pef 20550 overview semiconductor group 25 01.96 1.6 system integration and application the main application fields of the elic are: C digital line cards, different architectures are supported, C central control units of key systems, C analog line cards, C dect line cards. 1.6.1 digital line card 1.6.1.1 switching, layer-1 control, group controller signaling the elic performs a switching capability for up to 32 digital subscribers between the pcm- system highway and the iom-2 interface (64 b-channels). typically it switches 64-kbit/s channels between the pcm and the iom-interfaces. moreover it is able to handle also 16-, 32- and 128-kbit/s channels. the signaling handler supports the command/indication (c/i) channel which is used to exchange predefined layer-1 information with the transceiver device. a monitor handler supports the handshake protocol defined on the iom-monitor channel. it allows programming of layer-1 devices which do not have a dedicated m p interface. the communication between the line card and the group controller is performed by one of the sacco-channels. its auto-mode is optimized for this application and implements a slave station behaviour in normal response mode. the auto-mode is compatible with the pbc (peb 2050) but due to the large fifo-size the response time requirements compared to the pbc are reduced drastically. the data exchange between the line card and the group controller board can take place on a separate signalling highway or on the pcm-highway (due to the time slot capability of the sacco) (see figure 5 ).
peb 20550 pef 20550 overview semiconductor group 26 01.96 figure 5 data flow - b-channels, layer-1 control, group controller signaling another possibility to handle the point-to-multi-point configuration between a group controller and several line cards is a bus structure. the collision detection/resolution function of the sacco perfectly supports this architecture and allows the application of balanced protocols (see figure 6 ). figure 6 group controller signaling with bus structure for balanced protocols its05806 epic r arbiter sacco ch-a sacco ch-b elic r p b channels switching signaling handler monitor handler c/i, monitor channel signaling, group controller interface iom -2 r pcm highway its05807 line card elic sacco ch-b hscx group controller board receive collision input transmit r
peb 20550 pef 20550 overview semiconductor group 27 01.96 d-channel processing is supported by multiple different architectures: 1.6.1.2 decentralized d-channel processing, multiplexed hdlc-controller. typically the d-channel load has a very bursty characteristic. taking this into account, the elic provides the capability to multiplex one hdlc-controller among several subscribers. this feature results in a drastical reduction of hardware requirements while maintaining all benefits of hdlc based signaling. a d-channel arbiter is used to assign the receive and transmit hdlc-channel independently to the subscriber terminals. in downstream direction the arbiter links the transmit channel to one or more (broadcast) programmable iom-2 d-channels (ports). in upstream direction the arbiter assigns the hdlc-receive channel to a requesting subscriber and indicates to all other subscribers that their d-channels are blocked, using a control channel. this configuration supports full duplex layer-2 protocols with bus capability e.g. lapd or proprietary implementations. consequently no polling overhead is necessary providing the full 16-kbit/s bandwidth of the d-channel for data exchange. figure 7 d-channel handling with a multiplexed hdlc-controller its05808 epic r d channel controlling arbiter sacco ch-a sacco ch-b elic r p d channel highway b channels highway signaling pcm interface iom -2 r
peb 20550 pef 20550 overview semiconductor group 28 01.96 the control channel is unidirectional and forwards the status information of the corresponding d-channel (blocked or available) towards the subscriber terminal. different existing channel structures are used to implement the control channel between the hdlc-controllers on the line card and in the subscriber terminal. control channel implementation on the u pn -interface on an u pn -line card, the control channel is either integrated in the c/i-channel or uses the mr-bit, depending on the connected layer-1 device (octat-p -> c/i channel, ibc -> mr-bit). the u pn -transceiver uses the t-channel to transmit the control channel information to the terminal. the t-channel is a sub channel of the u pn -interface with a bandwidth of 2 kbit/ s. in the subscriber terminal the control channel is included again in the iom-2 protocol. depending on the terminal configuration two alternatives can be selected in the terminal transceiver device. the blocked/available information is translated directly into the s/g-bit (stop/go) when no subsequent transceiver circuit is present in the terminal. the s/g-bit is evaluated by the terminal hdlc-controller icc. it stops data transmission immediately when the s/ g-bit is set to 1. figure 8 control channel implementation with ibc (peb 2095) as line card transceiver its05809 hdlc controller u trans- ceiver icc (optional) dsac-p s/g s/g = 1 blocked available s/g = 0 mr = 1 mr = 0 ibc elic mr t t = 1 t = 0 r available blocked available blocked p0
peb 20550 pef 20550 overview semiconductor group 29 01.96 in figure 9 a control channel implementation with octat-p as line card transceiver can be seen. when an additional transceiver device is integrated in the terminal (e.g. an s 0 -adapter, peb 2081 (sbcx)) the control channel is translated into the a/b-bit (bit5, 4th byte, iom-channel 2, downstream). the a/b-bit is monitored by the sbcx. a/b = 1 indicates that the corresponding d-channel is available (a/b = 0 blocked). depending on this information, the sbcx controls the e-bit on the s 0 -bus and the s/g-bit on the iom-2 interface. when a/b = 0 the e-bit is forced in the inverted d-bit state, the s/g-bit is set to high. as a result all active transmitters in the terminal and on the s 0 -bus are forced to abandon their messages. figure 9 control channel implementation with octat ? -p (peb 2096) as line card transceiver and s 0 -adapter. its05810 hdlc controller u trans- ceiver sbcx dsac-p a/b a/b = 0 blocked available a/b = 1 c/i = 1000 c/i = 1100 octat -p elic c/i t t = 1 t = 0 r available blocked available blocked p0 r (optional) icc s/g e
peb 20550 pef 20550 overview semiconductor group 30 01.96 control channel implementation on the s 0 -interface when using the elic on a s 0 -line card the structure is much simpler because the s 0 -interface provides contention resolution as a standard feature. in this structure the quat-s modifies the e-bit on the line card, i.e. standard s 0 -phones can be connected. the control channel on the line card is included in the c/i-channel. figure 10 control channel implementation on a s 0 -line card even with a multiplexed hdlc controller signaling and packet data can be mixed on a s 0 line card. the priority scheme of the s 0 bus (2 priority classes) guarantees, that signal data is not delayed by data packets. its05811 c/i e e elic c/i = 1000 available blocked c/i = 1100 s 0 s phone 0 0 s 0 s phone s phone 0 0 s phone quat -s r r
peb 20550 pef 20550 overview semiconductor group 31 01.96 1.6.1.3 decentralized d-channel processing, dedicated hdlc-controller per subscriber in this configuration idecs (isdn d-channel exchange controller, peb 2075) handle the layer-2 functions for signaling and data packets in the d-channel. the extracted data is separated and sent via the m p and the sacco to the system interface. in this configuration signaling data is transferred on the pcm-highway, for packet data a dedicated bus system with collision resolution is used. figure 11 line card architecture for completely decentralized d-channel processing 1.6.1.4 decentralized d-channel processing, multiplexed plus dedicated hdlc-control especially when packet data is supported in the d-channel one multiplexed hdlc controller may create a bottleneck situation. one solution to overcome this problem is the combination of the multiplexing scheme with additional layer-2 controllers which can be temporarily assigned to individual subscribers on request. in normal operation all subscribers are managed by the d-channel arbiter and share sacco-a. when a subscriber requests a special type of service, the system can switch a dedicated hdlc controller and exclude this subscriber temporarily from the arbitration. for small systems sacco-b, for bigger systems idecs may be used as an assignable controller resource. its05812 epic r arbiter sacco ch-a sacco ch-b elic r p r iom -2 interface r idec idec r s + p data bb bbbsb ... example frame structure p-data s-data s-data pcm packet highway with collision resolution highway
peb 20550 pef 20550 overview semiconductor group 32 01.96 figure 12 sacco-b as assignable hdlc-controller figure 13 idec ? -s as assignable hdlc-controller resources its05813 epic r d channel controlling arbiter sacco ch-a sacco ch-b dedicated hdlc controller shared hdlc controller elic r p d channel d channel b channels interface iom -2 r pcm highway its05814 -p octat octat -p elic idec elic -p octat octat -p idec idec idec idec iom -2 iom -2 pcm highway highway pcm r r r r r r r r r r iom -2 r iom -2 r r r r
peb 20550 pef 20550 overview semiconductor group 33 01.96 1.6.1.5 central d-channel processing in this application the epic-1 not only switches the b-channels and performs the c/i- and monitor channel control function, but switches also the d-channel data onto the system highway. in upstream direction the epic-1 can combine up to four 16-kbit/s d- channels into one 64-kbit/s channel. in downstream direction it provides the capability to distribute one 64-kbit/s channel in four 16-kbit/s channels. figure 14 line card architecture for completely centralized d-channel processing its05815 epic r arbiter sacco ch-a sacco ch-b elic r r iom -2 interface signaling highway for bb b b ... example frame structure line card control b, d dddd p pcm highway
peb 20550 pef 20550 overview semiconductor group 34 01.96 1.6.1.6 mixed d-channel processing, signaling decentralized, packet data centralized another possibility is a mixed architecture with centralized packet data and decentralized signaling handling. this is a very flexible architecture which reduces the dynamic load of central processing units by evaluating the signaling information on the line card, but does not require resources for packet data handling. any increase of packet data traffic does not necessitate a change in the line card architecture, the central packet handling unit can be expanded. also in this application idecs are employed to handle the data on the d-channel. the idecs separate signaling information from data packets. the signaling messages are transferred to the m p, which in turn hands them over to the group controller using the sacco. the packet data is processed differently. together with the collision resolution information it is transferred to one iom-2 interface of the elic. the epic-1 switches the channels to the pcm-highway, optionally combining four d-channels to one 64-kbit/s channel. in this configuration one iom-2 interface is occupied by idecs, reducing the total switching capability of the epic-1 to 24 isdn-subscribers. figure 15 line card architecture for mixed d-channel processing its05816 epic r arbiter sacco ch-a sacco ch-b elic r p r iom -2 interface b, p, c r idec idec r p-data p+coll p sig. data signaling example frame structure ... b b b b p bc packet data data collision pcm signaling highway highway s
peb 20550 pef 20550 overview semiconductor group 35 01.96 alternatively, the packet and collision data can be directly exchanged between the idecs and the pcm-highway. thus, the full 32 subscriber switching capability of the epic-1 is retained. figure 16 line card architecture for mixed d-channel processing its05817 elic signaling packet data idec packet data idec p s + p-data p p p p coll b r r r signaling signaling coll interface iom -2 r pcm signaling highway highway s
peb 20550 pef 20550 overview semiconductor group 36 01.96 1.6.2 key systems the elic is an optimal solution for key systems like a pbx. when selecting the multiplexed d-channel architecture, the elic covers switching, layer-1 and layer-2 control for the entire system. together with the iom-2 compatible siemens transceiver circuits, a complete key system can be build with a few devices. figure 17 key system architecture, small size figure 18 key system architecture, medium size its05818 sacco_b trunk sacco_a sicofi -4 r iom -2 r subscribers 3 s 4 analog subscriber 0 0 s s subscribers trunk r elic 0 r iom -2 r quat -s s 0 s 0 s 0 its05819 sacco_b assignable subscriber sacco_a r isac -s isac -s r sicofi -2 r octat -p r r iom -2 iom -2 r iom -2 r s 0 trunk, 2 s 0 p0 subscribers (s adapter optional) 8 u 2 analog subscribers 0 s . . . r elic 0
peb 20550 pef 20550 overview semiconductor group 37 01.96 figure 19 key system architecture, maximum size 1.6.3 analog line card together with the highly flexible siemens codec filter circuits slicofi, sicofi, sicofi-2 or sicofi-4 the elic constitutes an optimized analog subscriber board architecture. the epic-1 part of the elic handles the signalling and voice data for up to 64 subscriber channels with 64 kbit/s. the sacco establishes the link to the group controller board. figure 20 line card architecture for analog subscribers its05820 sacco_b assignable subscriber sacco_a r idec sicofi -4 r -4 octat -p r r iom -2 trunk, 4 s 4 analog subscribers elic r 0 8 u optional) (s adapter subscribers p0 0 s s 0 s 0 s 0 r quat -s 0 r iom -2 r iom -2 r iom -2 octat -p r octat -p r its05821 iom -2 sicofi -4 elic c/i, monitor channel p pcm highway signaling highway b channels r r sicofi -4 r r sicofi -4 r sicofi -4 r sicofi -4 r sicofi -4 r sicofi -4 r sicofi -4 r r iom -2 r iom -2 r iom -2
peb 20550 pef 20550 overview semiconductor group 38 01.96 1.6.4 dect applications 1.6.4.1 adaptation of a dect system to an existing pbx when adding a dect system to an existing pbx, the line interface of the dect system must provide the pbx with pcm-coded voice data. depending on the dect controller the voice information is carried in different formats (4 bit adpcm or 8 bit pcm ). therefore a base station offering 8 bit pcm coded data can be connected directly to any pbx, whereas a base station delivering 4 bit adpcm coded data needs an adpcm to pcm converter. such an adapter is called common control fixed part (ccfp). an example for a ccfp realized with the elic (serving up to 32 handhelds in operation at a time) is given in the figure 21 . figure 21 dect application its07314 octat -p r 2 3 4 r elic hdlc d ccfp base stations 1 adpcm iom -2 r hdlc pcm quad adpcm adpcm quad c dsp trunk 32xt/r sync sicofi -4 r slic slic pn u iom -2 r iom -2 r sicofi -4 r
peb 20550 pef 20550 overview semiconductor group 39 01.96 in this configuration the base stations are connected to the line interface of the ccfp via u pn (octat-p). the 4 bit adpcm voice channels provided by the base stations are switched (by the elic) to the pcm - adpcm converter (quad adpcm), expanded to an 8 bit adpcm value and then switched (by the elic) to the analog trunk interface (sicofi-4 + slic). the additional dsps are necessary, to compensate short end echoes occurring at analog nodes the line card controller elic (peb 20550) fulfills four major tasks: ? layer-1 monitoring and controlling via iom-2 c/i and monitor channel ? signaling control (hdlc controller multiplexed to the subscribers) ? 4 bit switching of the pcm4 channels ? 8 bit switching of the pcm channels
peb 20550 pef 20550 overview semiconductor group 40 01.96 1.6.4.2 dect line card design for an existing pbx today most of the pbxs have a modular design, meaning they can be extended by adding an analog or digital line card. this enables a user to integrate a dect system into his pbx by simply inserting a dect line card that behaves like a digital line card. to communicate over the existing pcm highway, a pcm4 to pcm converter must be integrated onto the line card. compared to a digital line card a dect line card requires additional efforts to synchronize all line cards. v figure 22 line card architecture for dect subscribers the tasks of the elic are: ? layer-1 monitoring and controlling via iom-2 c/i and monitor channel ? signaling control (hdlc controller multiplexed to the subscribers) ? 4 bit switching of the pcm4 channels ? 8 bit switching of the pcm channels ? signaling control to the group processor its07315 octat -p r 2 3 4 r elic hdlc dect line card base stations 1 adpcm iom -2 r hdlc pcm quad adpcm adpcm quad c dsp sync pn u signaling highway highway pcm d pcm 2 mbit/s
peb 20550 pef 20550 functional description semiconductor group 41 01.96 2 functional description 2.1 general functions and device architecture the elic integrates the existing siemens device peb 2055 (epic-1), a two channel hdlc-controller (sacco: special application communication controller) with a peb 2050 (pbc) compatible auto-mode, a d-channel arbiter, a configurable bus interface and typical system glue logic into one chip. it covers all control functions on digital and analog line cards and can be combined via iom-2 interface with layer-1 circuits or special application devices (e.g. adpcm/pcm-converters). due to its flexible bus interface it fits perfectly into siemens / intel or motorola microprocessor architectures. 2.2 functional blocks 2.2.1 bus interface all registers and the fifos of the elic are accessible via the flexible bus interface supporting siemens / intel and motorola type microprocessors. depending on the register functionality a read, write or read/write access is possible. the bus interface consists of the following elements ? data bus, 8-bit wide, ad0-7, d0-7 ? address bus, 8-bit wide, p0.0-0.7, a0-7 ? two chip select lines, cse and css ? address latch enable, ale ? two read/write control lines, rd , ds and wr , r or w the ale-line is used to control the bus structure and interface type. table 1 selectable bus configurations ale interface bus structure pin 9 pin 8 fixed to v dd motorola demultiplexed ds r or w fixed to ground siemens / intel demultiplexed rd wr switching siemens / intel multiplexed rd wr
peb 20550 pef 20550 functional description semiconductor group 42 01.96 figure 23 selectable bus interface structures in order to simplify the use of 8- and 16-bit siemens / intel type cpus, different register addresses are defined in multiplexed and demultiplexed bus mode (see chapter 3.1 ). in the multiplexed mode even addresses are used (ad0 always 0), if emode:dmxad = 0. elic-data is always transferred in the low data byte. 2.2.2 parallel ports the elic provides a 4-bit wide i/o-port. a programmable configuration register (pcon1) controls whether the individual bits are used as inputs or outputs. the port is read/written like a on chip register (port1). if port 1 is to be configured as an output, please note that after reset the port is an input. the port1 register thus reflects the state of port 1 before it is configured as an output. if it is required that port 1 puts out a defined value immediately on being set as output, large (e.g. > 10 k w ) pull-up or pull-down resistors should be applied. after the port has been configured as output, its value can of course simply be set via the port1-register. additionally, when the bus interface is used in multiplexed bus mode (ale switching), the pins a0,p0.0 - a7,p0.7 constitute a parallel 8-bit wide input port. the port is read like an on chip register (port0). the current values on the input port is latched with the falling edge of rd , ds. itd05822 address/data bus interface, demultiplexed elic with siemens/intel type r r elic with motorola type interface address/data bus ale ds css cse d 0-7 a 0-7 r/w a 0-7 d 0-7 cse css rd ale ad 0-7 cse css rd ale wr wr elic with siemens/intel type r interface, multiplexed
peb 20550 pef 20550 functional description semiconductor group 43 01.96 2.2.3 watchdog timer to allow recovery from software or hardware failure, a watchdog timer is provided. after reset the watchdog timer is disabled. when setting bit swt in the watchdog timer control register wtc it is enabled. the only possibility to disable the watchdog timer is a elic-reset (power-up or resex).the timer period is 1024 pfs-cycles assuming that also pdc is active, i.e. a pfs of 8-khz results in a timer period of 128 ms. during that period, the bits wtc1 and wtc2 in the register wtc have to be written in the following sequence: table 2 watchdog timer programming the minimum required interval between the two write accesses is 2 pdc-periods. when the software fails to follow these requirements, a timer overflow occurs and a iwd- interrupt is generated. additionally an external reset indication (resin) is activated. the internal elic-status is not changed. 2.2.4 reset logic after power-up the elic is latched into the "resetting" state. a microprocessor access is not possible in the "resetting" state. the elic is released from the power-up "resetting" state when provided with pfs- and pdc-signals for 8 pfs-periods. the elic can also be reset by applying a resex-pulse for at least 4 pdc-periods. note that such an external resex has priority over a power-on reset. it is thus possible to kill the 8-frame reset duration after power-up. upon activation of the power supply an integrated power-up reset generator is provided. it is generated when v dd is in the range between 1 v and 3 v. additionally an external reset input (resex) and an reset indication output (resin) are available. during reset all elic-outputs with the exception of resin and tdo + drqra/b + drqta/b + sacco are in the state high impedance. the tristate control signals of the epic-1 pcm-interface (tsc [3:0]) tsca /b are not tristated during a chip reset. instead they are high during reset, thus containing the correct tristate information for external drivers. resin is set upon power up, resex and the expiring of the watchdog timer. it may be used as a system reset. resin is activated for 8 pfs-periods (assuming an active pdc- input) or it has the same pulse width as resex. resex has priority over internal activity wtc:wtc1 wtc:wtc2 1. 1 0 2. 0 1
peb 20550 pef 20550 functional description semiconductor group 44 01.96 generated resets with respect to the resin pulse width. the activation of resex causes an immediate activation of resin. upon the deactivation of resex however, resin is deactivated only with the next rising pdc-edge. a pfs-frequency of 8-khz results in a resin-period of 1 ms. when setting bit vnsr:swrx resin is also activated but the elic itself is not reset. this feature supports a proper reset procedure for devices which require dedicated clocking during reset. the sequence required is as follows: 1. initialize epic-1 for a timer interrupt 2. set bit vnsr:swrx to "1", resin is activated 3. when the timer interrupt occurs, resin is deactivated 4. set bit vnsr:swrx to "0" 5. read ista_e, in order to deactivate timer interrupt table 3 reset activities when v dd drops under normal operation the reset logic has the following behavior: table 4 behavior of the reset logic in the case of voltage drop note: the power-up reset generator must not be used as a supply voltage control element. internal elic reset resin activation resin pulse width power up x x 8 pfs watchdog timer under flow C x 8 pfs external reset (resex) x x resex setting of bit swrx C x programmable v dd behavior > 3 v no internal reset, no resin < 1 v internal reset and resin after v dd goes up again 1 v v dd 3 v not defined
peb 20550 pef 20550 functional description semiconductor group 45 01.96 2.2.5 boundary scan support the elic provides fully ieee std. 1149.1 compatible boundary scan support consisting of: C a complete boundary scan C a test access port controller (tap) C four dedicated pins (tck, tms, tdi, tdo) C a 32-bit idcode-register 2.2.5.1 boundary scan all elic-pins except power supply and ground are included in the boundary scan. depending on the pin functionality one, two or three boundary scan cells are provided. table 5 boundary scan cell types when the tap-controller is in the appropriate mode data is shifted into/out of the boundary scan via the pins tdi/tdo using the 6.25-mhz clock on pin tck. the elic-pins are included in the following sequence in the boundary scan: pin type number of boundary scan cells usage input 1 input output 2 output, enable i/o 3 input, output, enable table 6 boundary scan sequence boundary scan number tdi ? pin number pin name type number of scan cells default value 1 77 p0.0,a0 i 1 0 2 78 p0.1,a1 i 1 0 3 79 p0.2,a2 i 1 0 4 80 p0.3,a3 i 1 0 51p0.4,a4i10 62p0.5,a5i10 73p0.6,a6i10
peb 20550 pef 20550 functional description semiconductor group 46 01.96 84p0.7,a7i10 95int o2 01 10 for v1.3 10 6 cse i10 11 7 css i10 12 8 wr , r or w i10 13 9 rd , ds i 1 0 14 10 ale i 1 0 15 12 ad0,d0 i/o 3 000 16 13 ad1,d1 i/o 3 000 17 14 ad2,d2 i/o 3 100 18 15 ad3,d3 i/o 3 110 19 16 ad4,d4 i/o 3 000 20 17 ad5,d5 i/o 3 100 21 18 ad6,d6 i/o 3 000 22 19 ad7,d7 i/o 3 110 23 21 p1.0 i/o 3 000 24 22 p1.1 i/o 3 000 25 23 p1.2 i/o 3 000 26 24 p1.3 i/o 3 000 27 25 resin o 2 00 28 26 resex i 1 0 29 27 fsc i/o 3 000 30 28 dcl i/o 3 000 31 29 du0 i/o 3 000 32 30 du1 i/o 3 000 33 32 du2 i/o 3 000 34 33 du3 i/o 3 000 table 6 boundary scan sequence (contd) boundary scan number tdi ? pin number pin name type number of scan cells default value
peb 20550 pef 20550 functional description semiconductor group 47 01.96 35 34 dd0 i/o 3 000 36 35 dd1 i/o 3 000 37 36 dd2 i/o 3 000 38 37 dd3 i/o 3 000 39 38 dackb i10 40 39 dacka i10 41 40 drqrb o 2 00 42 41 drqtb o 2 00 43 42 drqar o 2 00 44 43 drqta o 2 00 45 44 rxda i 1 0 46 45 cxda i 1 0 47 46 txda o 2 00 48 47 tsca o2 00 49 48 hdca i 1 0 50 49 hfsa i 1 0 51 50 hfsb i 1 0 52 52 hdcb i 1 0 53 53 tscb o2 00 54 54 txdb o 2 00 55 55 cxdb i 1 0 56 56 rxdb i 1 0 57 58 rxd3 i 1 0 58 59 rxd2 i 1 0 59 60 rxd1 i 1 0 60 61 rxd0 i 1 0 61 62 tsc0 o2 00 62 63 txd0 o 2 00 table 6 boundary scan sequence (contd) boundary scan number tdi ? pin number pin name type number of scan cells default value
peb 20550 pef 20550 functional description semiconductor group 48 01.96 2.2.5.2 tap-controller the test access port (tap) controller implements the state machine defined in the jtag-standard: ieee std. 1149.1. transitions on the pin tms cause the tap-controller to perform a state change. following the standard definition five instructions are executable. table 7 tap-controller instructions extest is used to examine the board interconnections. when the tap-controller is in the state "update dr", all output pins are updated with the falling edge of tck. when it has entered state "capture dr" the levels of all input pins are latched with the rising edge of tck. the in/out shifting of the scan vectors is typically done using the instruction sample/preload. 63 64 tsc1 o2 00 64 65 txd1 o 2 00 65 66 tsc2 o2 00 66 67 txd2 o 2 00 67 68 tsc3 o2 00 68 69 txd3 o 2 00 69 70 pfs i 1 0 70 71 pdc i 1 0 code instruction function 000 extest external testing 001 intest internal testing 010 sample/preload snap-shot testing 011 idcode reading id-code 111 bypass bypass operation others C bypass operation table 6 boundary scan sequence (contd) boundary scan number tdi ? pin number pin name type number of scan cells default value
peb 20550 pef 20550 functional description semiconductor group 49 01.96 intest supports internal chip testing. when the tap-controller is in the state "update dr", all inputs are updated internally with the falling edge of tck. when it has entered state "capture dr" the levels of all outputs are latched with the rising edge of tck. the in/out shifting of the scan vectors is typically done using the instruction sample/preload. note: 001 (intest) is the default value of the instruction register. sample/preload provides a snap-shot of the pin level during normal operation or is used to preload (tdi)/shift out (tdo) the boundary scan with a test vector. both activities are transparent to the system functionality. idcode , the 32-bit identification register is serially read out via tdo. it contains the version number (4 bit), the device code (16 bit) and the manufacturer code (11 bits). the lsb is fixed to "1". note: in the state "test logic reset" the code "011" is loaded into the instruction code register bypass , a bit entering tdi is shifted to tdo after one tck-clock cycle. 2.2.6 epic ? -1 the epic-1 is fully compatible to the siemens peb 2055 (epic-1, version a3). it includes the following functional enhancements: C direct access to all registers also in demultiplexed mode C pcm-mode 3 C software activation of external reset C error correction C additional clock shift features pcm (register pcsr) for detailed information refer to appendix 9.1 . 2.2.6.1 pcm-interface the pcm-interface formats the data transmitted or received at the pcm-highways. it can be configured as one (max. 8192 kbit/s), two (max. 4096 kbit/s) or four (max. 2048 kbit/ s) pcm-ports, consisting each of a data receive (rxd#), a data transmit (txd#) and an output tristate indication line (tsc# ). port configuration, data rates, clock shift and sampling conditions are programmable. the newly implemented pcm-mode 3 is similar to mode 1 (two pcm-highways). unlike mode 1 the pins txd1, txd3 are not tristated but drive the inverted values of txd0, txd2. tdi ? 00 01 0000 0000 0001 0011 0000 1000 001 1 ? tdo 00 10 0000 0000 0001 0011 0000 1000 001 1 for v1.3
peb 20550 pef 20550 functional description semiconductor group 50 01.96 2.2.6.2 configurable interface in order to optimize the on-board interchip communication, a very flexible serial interface is available. it formats the data transmitted or received at the ddn-, dun- or sipn-lines. although it is typically used in iom-2 or sld-configuration to connect layer-1 devices, application specific frame structures can be defined (e.g. to interface adpcm- converters or maintenance blocks). 2.2.6.3 memory structure and switching the memory block of the epic-1 performs the switching functionality. it consists of four sub blocks: C upstream data memory C downstream data memory C upstream control memory C downstream control memory. the pcm-interface reads periodically from the upstream (writes periodically to the downstream) data memory (cyclical access), see figure 24. the cfi reads periodically the control memory and uses the extracted values as a pointers to write to the upstream (read from the downstream) data memory (random access). in the case of c/i- or signaling channel applications the corresponding data is stored in the control memory. in order to select the application of choice, the control memory provides a code portion. the control memory is accessible via the m p-interface. in order to establish a connection between cfi time slot a and pcm-interface time slot b, the b-pointer has to be loaded into the control memory location a.
peb 20550 pef 20550 functional description semiconductor group 51 01.96 2.2.6.4 pre-processed channels, layer-1 support the epic-1 supports the monitor/feature control and control/signaling channels according to sld- or iom-2 interface protocol. the monitor handler controls the data flow on the monitor/feature control channel either with or without active handshake protocol. to reduce the dynamic load of the cpu a 16-byte transmit/receive fifo is provided. the signaling handler supports different schemes (d-channel + c/i-channel, 6-bit signaling, 8-bit signaling). in downstream direction the relevant content of the control memory is transmitted in the appropriate cfi time slot. in the case of centralized isdn d-channel handling, a 16-kbit/ s d-channel received at the pcm-interface is included. in upstream direction the signaling handler monitors the received data. upon a change it generates an interrupt, the channel address is stored in the 9-byte deep c/i fifo and the actual value is stored in the control memory. in 6-bit and 8-bit signaling schemes a double last look check is provided. . figure 24 epic ? -1 memory structure its05823 data 8 bits code 4 bits 4 bits code 8 bits data 0 ... 127 data memory (dm) control memory (cm) 0 ... 127 data 8 bits data memory (dm) 0 ... 127 127 ... 0 (cm) memory control data 8 bits code 4 bits txd# rxd# pcm du# dd# cfi p upstream downstream
peb 20550 pef 20550 functional description semiconductor group 52 01.96 2.2.6.5 special functions C synchronous transfer. this utility allows the synchronous m p-access to two independent channels on the pcm- or cfi-interface. interrupts are generated to indicate the appropriate access windows. C 7-bit hardware timer. the timer can be used to cyclically interrupt the cpu, to determine the double last look period, to generate a proper cfi-multiframe synchronization signal or to generate a defined resin pulse width. C frame length checking. the pfs-period is internally checked against the programmed frame length. C alternative input functions. in pcm-mode 1 and 2, the unused ports can be used for redundancy purposes. in these modes, for every active input port a second input port exists which can be connected to a redundant pcm-line. additionally the two lines are checked for mismatches. 2.2.7 sacco the sacco (special application communication controller) is a high level serial communication controller consisting of two independent hdlc-channels (a + b). it is a derivative product of the siemens sab 82525 (hscx). the sacco essentially reduces the hardware and software overhead for serial synchronous communication. sacco channel a can be multiplexed by the d-channel arbiter to serve multiple subscribers. in the following section one sacco channel is described referring to as "sacco". 2.2.7.1 block diagram the sacco (one channel) provides two independent 64-byte fifos for receive and transmit direction and a sophisticated protocol support. it is optimized for line card applications in digital exchange systems and offers special features to support: C communication between a line card and a group controller C communication between terminal equipment and a line card
peb 20550 pef 20550 functional description semiconductor group 53 01.96 the sacco consists of the following logical blocks: figure 25 sacco-block diagram (one channel) 2.2.7.2 parallel interface all registers and the fifos are accessible via the elic parallel m p-interface. the chip select signal css selects the sacco for read/write access. the fifos allocate an address space of 32 bytes each. the data in the fifos can be managed by the cpu- or a dma-controller. to enable the use of block move instructions, the top of fifo-byte is selected by any address in the reserved range. itb05824 css wr rd ale int ad 0-7 elic parallel interface xfifo rfifo protocol support serial interface txd# tsc# cxd# rxd# hdc hfs drqr drqt dackn r
peb 20550 pef 20550 functional description semiconductor group 54 01.96 interrupts the sacco indicates special events by issuing an interrupt request. the cause of a request can be determined by reading the interrupt status register ista_a/b or exir_a/ b. the related register is flagged in the top level ista (refer to figure 46 ). three indications are available in ista_a/b, another five in the extended interrupt register exir_a/b. an interrupt which is masked in the mask_a/b is not indicated in the top level register and the int -line is not activated. the interrupt is also not visible in the local registers ista_a/b but remains stored internally and will be indicated again when the corresponding mask_a/b-bit is reset. the sacco-interrupt sources can be splitted in three logical groups: ? receive interrupts (rfs, rpf, rme, ehc) ? transmit interrupts (xpr, xmr) ? special condition interrupts (xdu/exe, rfo) for further information refer to chapter 3.6.1 ( data transmission in interrupt mode ) and chapter 3.6.3 ( data reception in interrupt mode ). dma-interface to support efficient data exchange between system memory and the fifos an additional dma-interface is provided. the fifos have separate dma-request lines (drqra/b for rfifo, drqta/b for xfifo) and a common dma-acknowledge input. the dma-controller has to operate in the level triggered, demand transfer mode. if the dma-controller provides a dma-acknowledge signal, each bus cycle implicitly selects the top of fifo and neither address nor chip select is evaluated. if no dack signal is supplied, normal read/write operations (providing addresses) must be performed (memory to memory transfer). the sacco activates the drqt/r-lines as long as data transfers are needed from/to the specific fifos. a special timing scheme is implemented to guarantee safe dma-transfers regardless of dma-controller speed. if in transmit direction a dma-transfer of n bytes is necessary (n < 32 or the remainder of a long message), the drqt-pin is active up to the rising edge of wr of dma-transfer (n-1). if n > 32 the same behavior applies additionally to transfers 31, 63, , ((k 32) 1). drqt is activated again with the next rising edge of dack (or css ), if there are further bytes to transfer ( figure 27 ). when a fast dma-controller is used (> 16 mhz), byte n (or bytes k 32) will be transferred before drqt is deactivated from the sacco. in this case pin drqt is not activated any more up to the next block transfer ( figure 26 ).
peb 20550 pef 20550 functional description semiconductor group 55 01.96 figure 26 timing diagram for dma-transfers (fast) transmit (n < 32, remainder of a long message or n = k 32) figure 27 timing diagram for dma-transfers (slow) transmit (n < 32, remainder of a long message or n = k 32) in receive direction the behavior of pin drqr is implemented correspondingly. if k 32 bytes are transferred, pin drqr is deactivated with the rising edge of rd of dma- transfer ((k 32) 1) and it is activated again with the next rising edge of dack (or css ), if there are further bytes to transfer ( figure 29 ). when a fast dma-controller is used (> 16 mhz), byte n (or bytes k 32) will be transferred immediately ( figure 28 ). however, if 4, 8, 16 or 32 bytes have to be transferred (only these discrete values are possible in receive direction), drqr is deactivated with the falling edge of rd ( figure 30 ). itd05825 drqt wr css, dack cycle n-2 n-1 n itd05826 drqt wr css, dack cycle n-2 n-1 n
peb 20550 pef 20550 functional description semiconductor group 56 01.96 figure 28 timing diagram for dma-transfer (fast) receive (n = k 32) figure 29 timing diagram for dma-transfers (slow) receive (n = k 32) figure 30 timing diagram for dma-transfers (slow or fast) receive (n = 4, 8 or 16) generally it is the responsibility of the dma-controller to perform the correct bus cycles as long as a request line is active. itd05827 drqr rd css, dack cycle n-2 n-1 n itd05828 drqr rd css, dack cycle n-2 n-1 n itd05829 drqr rd css, dack cycle n-2 n-1 n
peb 20550 pef 20550 functional description semiconductor group 57 01.96 for further information refer to chapter 3.6.2 ( data transmission in dma-mode ) and chapter 3.6.4 ( data reception in dma-mode ). figure 31 dma-transfers with pulsed dack (read or write) if a pulsed dack-signal is used the drqr/drqt-signal will be deactivated with the rising edge of rd/wr-operation (n-1) but activated again with the following rising edge of dack. with the next falling edge of dack (dack n) it will be deactivated again (see figure 31 ). this behavior might cause a short negative pulse on the drqr/drqt-line depending on the timing of dack vs. rd /wr . 2.2.7.3 fifo-structure two independent 64-byte deep fifos for transmit and receive direction are provided. they enable an intermediate storage of data between the serial and the parallel (cpu) interface. the fifos are divided into two halves of 32 bytes each, where only one half is accessible by the cpu- or dma-controller. receive fifo the receive fifo (rfifo) is organized in two parts of 32 bytes each, of which only one part is accessible for the cpu. when a frame with up to 64 bytes is received, the complete frame may be stored in rfifo. after the first 32 bytes have been received, the sacco prompts to read the data block by means of interrupt or dma-request (rpf-interrupt or activation of drqr-line). the data block remains in the rfifo until a confirmation is given to the sacco- acknowledging the reception of the data. this confirmation is either a rmc- (receive message complete) command in interrupt mode or it is implicitly achieved in dma-mode after 32 bytes have been read. as a result it is possible in interrupt mode to read out the data block any number of times until the rmc-command is executed. upon the confirmation the second data block is shifted into the accessible rfifo-part and an drqr / drqt dack wr / rd n n-1 n-2 itd06896
peb 20550 pef 20550 functional description semiconductor group 58 01.96 rme-interrupt is generated. the configuration of the rfifo prior to and after acknowledgment is shown in figure 32 ( left ). if frames longer than 64 bytes are received, the sacco will repeatedly prompt to read out 32-byte data blocks via interrupt or dma. figure 32 frame storage in rfifo (single frame / multiple frames) in the case of several shorter frames , up to 17 frames may be stored in the rfifo. nevertheless, only one frame is stored in the cpu accessible part of the rfifo. e.g., if frame i (or the last part of frame i) is stored in the accessible rfifo-part, up to 16 short frames may be stored in the other half (i + 1, i + 2, , i + n, n 16). this behavior is illustrated in figure 32 ( right ). note: after every frame a receive status byte is appended, specifying the status of the frame (e.g. if the crc-check is o.k.). when using the dma-mode, the sacco requests fixed size block transfers (4, 8, 16 or 32 bytes). the valid byte count is determined by reading the registers rbch, rbcl following the rme-interrupt. transmit fifo the transmit fifo (xfifo) provides a 2 32 bytes capability to intermediately store transmit data. in interrupt mode the user loads the data and then executes a transmit command. when the frames are longer than 32 bytes, a xpr-interrupt is issued as soon as the accessible xfifo-part is available again. itd05830 block b+1 block b+1 frame j free free free frame i+n free last block of frame i free free cpu inaccessible fifo part, 32 bytes 0 < n < 17 rfifo status prior to acknowledgement rfifo status after acknowledgement to acknowledgement acknowledgement free 32 bytes fifo part, cpu accessible 32 bytes block b frame j rfifo status prior rfifo status after frame i+1 frame i+n frame i+2 frame i+1
peb 20550 pef 20550 functional description semiconductor group 59 01.96 the status of the bit mode:cft (continuous frame transmission) defines whether a new frame can be loaded as soon as the xfifo is available or after the current transmission was terminated. figure 33 xfifo loading, continuous frame transmission disabled (cft = 0) figure 34 xfifo loading, continuous frame transmission enabled (cft = 1) when using the dma-mode, prior to the data transfer the actual byte count to be transmitted must be written to the registers xbch, xbcl (transmit byte count high, low). itd05831 xpr xpr xpr xpr frame transmission transmit serial data frame n frame n+1 frame n frame n+1 (40 bytes) copy data to inaccessable xfifo part frame preparation cmd : xtf write xfifo (32 bytes) write xfifo cmd : xtf+xme write xfifo cmd : xtf+xme (32 bytes) (8 bytes) (32 bytes) itd05832 xpr xpr xpr xpr frame transmission transmit serial data frame n frame n+1 frame n frame n+1 (40 bytes) copy data to inaccessable xfifo part frame preparation cmd : xtf write xfifo (32 bytes) write xfifo cmd : xtf+xme write xfifo (32 bytes) (8 bytes) (32 bytes) frame n+2 xpr (32 bytes) write xfifo frame n+2 cmd : xtf+xme cmd : xtf+xme
peb 20550 pef 20550 functional description semiconductor group 60 01.96 if the data transfer is initiated via the proper command, the sacco automatically requests the correct amount of block data transfers (n 32 + remainder, n = 0, 1, 2, ) by activating the drqt-line. refer to chapter 2.2.7.2 for a detailed description of the dma transfer timing. 2.2.7.4 protocol support the sacco supports the following fundamental hdlc functions: C flag insertion/deletion, C bit stuffing, C crc-generation and checking, C address recognition. further more it provides six different operating modes, which can be set via the mode register. these are: C auto mode, C non-auto mode, C transparent mode 0 and 1, C extended transparent mode 0 and 1. these modes provide different levels of hdlc processing. an overview is given in figure 35 . . figure 35 support of the hdlc protocol by the sacco itd08035 flag address control field crc flag i- sacco user auto mode non-auto mode transparent mode 1 extended transparent mode transparent mode 0
peb 20550 pef 20550 functional description semiconductor group 61 01.96 address recognition address recognition is performed in three operating modes (auto-mode, non-auto-mode and transparent mode 1). two pairs of compare registers (rah1, rah2: high byte compare, ral1, ral2: low byte compare) are provided. ral2 may be used for a broadcast address. in auto-mode and non-auto-mode 1- or 2-byte address fields are supported, transparent mode 1 is restricted on high byte recognition. the high byte address is additionally compared with the lapd group address (fc h , fe h ). depending on the operating mode the following combinations are considered valid addresses: table 8 address recognition operating mode compare value high byte compare value low byte activity auto-mode, 2-byte address field processed, following the auto-mode protocol fch feh frame is stored transparently in rfifo fch feh auto-mode, 1-byte address field C processed, following the auto-mode protocol C frame is stored transparently in rfifo non-auto mode, 2-byte address field frame is stored transparently in rfifo fch feh fch feh
peb 20550 pef 20550 functional description semiconductor group 62 01.96 auto-mode (mode:mds1,mds0 = 00) characteristics: hdlc formatted, nrm-type protocol, 1-byte/2-byte address field, address recognition, any message length, automatic response generation for rr- and i- frames, window size 1. the auto-mode is optimized to communicate with a group controller following a nrm- (normal response mode) type protocol. its functionality guarantees a minimum response time and avoids the interruption of the cpu in many cases. the sacco auto-mode is compatible to a peb 2050 (pbc) behavior in secondary mode. following the pbc-conventions, two data types are supported in auto-mode. table 9 auto-mode data types note: in many applications only direct data is used, nevertheless both data types are supported because of compatibility reasons. non-auto mode, 1-byte address field C frame is stored transparently in rfifo C transparent mode 1 C frame is stored transparently in rfifo C fch C feh C data types meaning direct data data exchanged in normal operation mode between the local m p and the group controller, typically signaling data. prepared data data request by or send to the group controller for maintenance purposes. table 8 address recognition (contd) operating mode compare value high byte compare value low byte activity
peb 20550 pef 20550 functional description semiconductor group 63 01.96 receive direction in auto-mode the sacco provides address recognition for 2- and 1-byte address fields. the auto-mode protocol is only applied when ral1 respectively rah1/ral1 match. with any other matching combination, the frame is transferred transparently into the rfifo and an interrupt (rpf or rme) is issued. if no address match occurs, the frame is skipped. the auto-mode protocol processes rr- and i-frames automatically. on the reception of any other frame type an ehc- interrupt (extended hdlc frame) is generated. no data is stored in the rfifo but due to the internal hardware structure the hdlc-control field is temporarily stored in register rhcr. in the pbc-protocol an extended hdlc-frame does not contain any data. table 10 hdlc-control field in auto-mode rr-frames rr-frames are processed automatically and are not stored in rfifo. when a rr-frame with poll bit set (control field = xxx10001) is received, it is interpreted as a request to transmit direct data. depending on the status of the xfifo an i-frame (data available) or a rr-response (no data available) is issued. this behavior guarantees minimum response times and supports a fast cyclical polling of signaling data in a point-to-multi-point configuration. a rr-frame with poll bit = 0 is interpreted as an acknowledgment for a previously transmitted i-frame: the xfifo is cleared, a xpr interrupt is emitted, no response is generated. the polling of a frame can be repeated an unlimited number of times until the frame is acknowledged. depending on the status of the bit mode:arep (auto repeat), the transmission is repeated without or with the intervention of the cpu (xmr interrupt). the auto repeat mode must not be selected, when the frame length exceeds 32 bytes. in dma mode, when using the auto repeat mode, the control response will not be compatible to the pbc. hdlc-control byte frame type xxxp xxx0 i-frame xxxp xx01 rr-frame xxxx xx11 extended hdlc-frame
peb 20550 pef 20550 functional description semiconductor group 64 01.96 i-frames when an i-frame is received in auto-mode the first data byte is interpreted as a command byte according to the peb 2050 (pbc) protocol. depending on the value of the command byte one of the following actions is performed. table 11 auto-mode command byte interpretation when a i-frame is stored in rfifo the command byte has to be interpreted by software. depending on the subset of pbc commands used in the individual application, the implementation may be limited to the necessary functions. in case xpd is executed (with or without data in xfifo) the sacco will generate an xpr interrupt upon the reception of a command d0 h , , ef h , even if the data has not been polled previously. note: in auto-mode i-frames with wrong crc or aborted frames are stored in rfifo. in the attached rsta-byte the crc and rab-bits are set accordingly to indicate this situation. in these cases no response is generated. command byte = 1. data byte stored in rfifo interrupt additional activities condition 00 - 9f h b0 - cf h f0 - ff h yes rpf, rme response generation when poll bit set C a0-af h no no response generation when poll bit set i-frame with xfifo- data C command xpd executed d0 - ef h no xpr response generation when poll bit set, reset xfifo command xpd executed no no response generation when poll bit set command xpd not executed
peb 20550 pef 20550 functional description semiconductor group 65 01.96 transmit direction, response generation in auto-mode frames are only transmitted after the reception of a rr- or i-frame with poll bit set. rr-response the rr-response is generated automatically. it has the following structure. the address is defined by the value stored in xad1 (1-byte address) or xad1 and xad2 (2-byte address). the control byte is fixed to 11 h (rr-frame, final bit = 1). control response the control response is generated automatically. it has the following structure. the address is defined by the value stored in xad1 (1-byte address) or xad1 and xad2 (2-byte address). the control byte is fixed to 10 h . table 12 auto-mode response generation received frame response condition rr-poll poll bit set i-frame with xfifo-data command xdd executed rr-response command xdd not executed i-frame, first byte = axh poll bit set i-frame with xfifo-data command xpd executed i-frame, data byte = control response command xpd not executed i-frame, first data byte not axh, poll bit set i-frame, data byte = control response flag address control byte crc-word flag flag address control byte control resp. crc-word flag
peb 20550 pef 20550 functional description semiconductor group 66 01.96 according to the pbc conventions, the control response byte has the following structure: bit7 6 : 10 : response to an i-frame, no further data follows bit5 : 1 : m p connected (pbc operates optionally in stand alone mode) bit4 : arep : 1/0: autorepeating is enabled/disabled (read back value of cmdr:arep) bit3 2 : 00 : sacco fifo available for data reception bit1 : dov : inverted status of the bit rsta:rdo (rfifo overflow) bit0 : 1 : fixed value, no functionality. i-frame with data the address is defined by the value stored in xad1 (1-byte address) or xad1 and xad2 (2-byte address). the control byte is fixed to 10 h (i-frame, final bit = 1). the data field contains the xfifo contents. note: the control response byte has to be generated by software. data transfer polling of direct data when direct data was loaded (xdd executed) an i-frame is generated as a response to a rr-poll. after checking star:xfw, blocks of up to 32 bytes may be entered in xfifo. when more than 32 bytes are to be transmitted the xpr-interrupt is used to indicate that the cpu accessible xfifo-part is free again. a maximum of 64 bytes may be stored before the actual transmission is started. a rr-acknowledge (poll bit = 0) causes an ista:xpr interrupt, xfifo is cleared and star:xfw is set. when the sacco receives a rr-poll frame and no data was loaded in xfifo it generates automatically a rr-response. bit 7 bit 0 101arep00dov1 flag address control byte data crc-word flag
peb 20550 pef 20550 functional description semiconductor group 67 01.96 figure 36 polling of up to 64 bytes direct data if more than 64 bytes are transmitted, the xfifo is used as an intermediate buffer. data has to be reloaded after transmission was started. figure 37 polling more than 64 bytes of direct data (e.g. 96 bytes) its05833 wr xfifo cmdr : xdd ista : xpr wr xfifo cmdr : rr-poll complete i-frame sacco slave group controller master (pbc) xdd/xme gc polls, data is available, the slave sends an i-frame. ista : xpr rr-acknowledge rr-poll rr-response be loaded. interrupt, new data can the slave emits an xpr gc acknowledges, gc polls, no data is available, the slave generates a rr-response. its05834 rr-poll complete i-frame group controller master (pbc) gc polls, data is available, the slave sends an i-frame, data has to be reloaded during transmission. ista : xpr wr xfifo ista : xpr cmdr : xdd wr xfifo slave sacco wr xfifo cmdr : xdd/xme cmdr : xdd
peb 20550 pef 20550 functional description semiconductor group 68 01.96 when the group controller wants the sacco to re-transmit a frame (e.g. due to a crc- error) it does not answer with a rr-acknowledge but emits a second rr-poll. the sacco then generates an xmr-interrupt (transmit message repeat) indicating the cpu that the previously transmitted frame has to be loaded again. for frames which are not longer then 32 bytes the sacco offers an auto repeat function allowing the automatic re-transmission of a frame without interrupting the cpu. note: for frames which are longer than 32 bytes the auto repeat function must not be used. figure 38 re-transmission of a frame its05835 rr-poll complete i-frame sacco slave group controller master (pbc) gc polls, data is available, the slave sends an i-frame, data is corrupted, gc polls again, sacco emits xmr. rr-poll e.g. crc error exir : xmr cmdr : xdd/xme wr xfifo ista : xpr cmdr : xdd wr xfifo
peb 20550 pef 20550 functional description semiconductor group 69 01.96 figure 39 re-transmission of a frame with auto-repeat function polling of prepared data if polling "prepared data" a different procedure is used. the group controller issues an i-frame with a set poll bit and the first data byte is interpreted as command byte. when prepared data was loaded into the xfifo (cmdr:xpd/xme was set) the reception of a command byte equal to axh initiates the transmission of an i-frame. for "prepared data" the auto repeat function must be selected! due to this the polling can be repeated without interrupting the cpu. an i-frame with a data byte equal to d0h-efh is interpreted as an acknowledgment for previously transmitted data. an xpr-interrupt is issued and the xfifo is reset. all other i-frames are stored in the rfifo and a rme-interrupt is generated. the local m p can read and interpret the received data (e.g. following the pbc-protocol). a pbc compatible control response is generated automatically. e.g., if the local m p recognizes the request to "prepare data" it may load the xfifo and set cmdr:xpd/xme. its05836 sacco slave group controller master (pbc) gc polls, data is available, the slave sends an i-frame, data is corrupted, gc polls again, sacco retransmits, rr-poll complete i-frame complete i-frame rr-poll rr-acknowledge e.g. crc error gc acknowledges, sacco emits xpr. ista : xpr xdd/xme/arep cmdr : wr xfifo
peb 20550 pef 20550 functional description semiconductor group 70 01.96 figure 40 polling of prepared data behavior of sacco when a rfifo overflow occurs in auto-mode when the rfifo overflows during the reception of an i-frame, a control response with overflow indication is transmitted, the overflow information is stored in the corresponding receive status byte. when additional poll frames are received while the rfifo is still occupied, an rfo (receive frame overflow) interrupt is generated. depending on the type of the received poll frame different responses are generated: i-frame: C control response with overflow indication (exception: when the command "transmit prepared data" (axh) is received and prepared data is available in the xfifo, an i-frame (with data) is issued) rr-poll: C rr-response, when no direct data was stored in the xfifo C i-frame, when direct data was stored in the xfifo its05837 control resp. group controller master (pbc) e.g. crc error i-frame (prepare data) complete i-frame i-frame (ax ) i-frame (d0 ) gc emits an i-frame with a command byte requesting the preparation of a defined data type. the command has to be interpreted by software, a response is generated automatically. gc uses the command ax to poll the requested data. the slave reacts without interrupting gc uses the command d0 -ef to acknowledge received data. the slave issues a xpr interrupt. ista : xpr cmdr : xpd/ wr xfifo rd rfifo slave sacco ista : rme xme/arep the cpu. h h hh h
peb 20550 pef 20550 functional description semiconductor group 71 01.96 depending on the number of bytes to be stored in the rfifo the following behavior occurs: multiple shorter frames results in the same behavior, e.g. frame 1: 1 - 31 bytes frame 2 - n: total of 31 bytes including receive status bytes for frame 2 - (n - 1) cause the case 1. rfifo handling/steps case 1 case 2 case 3 receive frame total frame length: 63 data bytes total frame length: 64 data bytes total frame length: 65 data bytes or more after 32 bytes are received a rpf-interrupt is issued, the rfifo is not acknowledged after next 31/32 bytes are received control response, no overflow indication control response with overflow indication control response with overflow indication additional i-poll rfo-interrupt, i-response with overflow indication or i-data if stored in xfifo as prepared data additional rr-poll rfo-interrupt, rr-response or i-data if stored in xfifo as direct data read and acknowledge rfifo rme-interrupt rpf-interrupt rpf-interrupt read and acknowledge rfifo rdo-bit is not set, frame is complete rme-interrupt rme-interrupt read and acknowledge rfifo rdo-bit is set, frame is complete but indicated as incomplete rdo-bit is set, frame is not complete
peb 20550 pef 20550 functional description semiconductor group 72 01.96 non-auto-mode (mode:mds1, mds0 = 01) characteristics: hdlc formatted, 1-byte/2-byte address field, address recognition, any message length, any window size. all frames with valid address fields are stored in the rfifo and an interrupt (rpf, rme) is issued. the hdlc-control field, data in the i-field and an additional status byte are stored in rfifo. the hdlc-control field and the status byte can also be read from the registers rhcr, rsta (currently received frame only!). according to the selected address mode, the sacco can perform 2-byte or 1-byte address recognition. transparent mode 1 (mode:mds1, mds0, adm = 101) characteristics: hdlc formatted, high byte address recognition, any message length, any window size. only the high byte address field is compared with rah1, rah2 and the group address (fc h , fe h ). the whole frame except the first address byte is stored in rfifo. ral1 contains the second and rhcr the third byte following the opening flag (currently received frame only). when using lapd the high byte address recognition feature can be used to restrict the frame reception to the selected sapi-type. transparent mode 0 (mode:mds1, mds0, adm = 100) characteristics: hdlc formatted, no address recognition, any message length, any window size. no address recognition is performed and each frame is stored in the rfifo. ral1 contains the first and rhcr the second byte following the opening flag (currently received frame only). note: in non-auto-mode and transparent mode i-frames with wrong crc or aborted frames are stored in rfifo. in the attached rsta-byte the crc and rab-bits are set accordingly to indicate this situation.
peb 20550 pef 20550 functional description semiconductor group 73 01.96 extended transparent mode 0 (mode:mds1, mds0, adm = 110) characteristics: fully transparent without hdlc framing, any message length, any window size. data is stored in register ral1. in extended transparent mode, fully transparent data transmission/reception without hdlc-framing is performed, i.e. without flag-generation/recognition, crc-generation/ check, bit stuffing mechanism. this allows user specific protocol variations or can be used for test purposes (e.g. to generate frames with wrong crc-words). data transmission is always performed out of the xfifo. data reception is done via register ral1, which contains the actual data byte assembled at the rxd pin. extended transparent mode 1 (mode:mds1, mds0, adm = 111) characteristics: fully transparent without hdlc-framing, any message length, any window size. data is stored in register ral1 and rfifo. identical behavior as extended transparent mode 0 but the received data is shifted additionally into the rfifo. receive data flow (summary) the following figure gives an overview of the management of the received hdlc-frames depending on the selected operating mode.
peb 20550 pef 20550 functional description semiconductor group 74 01.96 figure 41 receive data flow itd05838 flag addr ctrl i crc flag i address control data status data rah 1 ral 1 1 ral 1 1 rah 1 0 0 automode/16 adm mds 0 mds 1 ral 1 rah 2 or fch or feh rah 1 or rah 2 or fch or feh ral 2 rfifo rsta rhcr rsta rfifo rhcr rhcr rsta ral 1 rhcr rsta rfifo ral 1 rhcr rsta mds 1 mds 0 adm automode/8 000 rfifo rsta rhcr ral 2 ral 1 rhcr rfifo rsta rah 1 or feh fch or rah 2 or rah 1 or feh fch or rah 2 or 1 1 0 non automode/16 adm mds 0 mds 1 rhcr rsta rfifo ral 1 ral 2 mds 1 mds 0 adm non automode/8 010 rah 1 rah 2 fch feh rsta rfifo rhcr ral 1 1 0 1 transparent mode 1 adm mds 0 mds 1 mds 1 mds 0 adm 100 rfifo rsta ral 1 rhcr compared with register/group address processed automatically stored in rfifo, register i-frame, 1. data byte not ax or do -ef note : compressed hdlc control field stored in rhcr extended hdlc frame broadcast hdlc frame broadcast hdlc frame extended hdlc frame i-frame, 1. data byte x x x x x0 xxxxxx11 xxxxxx11 1. byte ral 2 transparent mode 0 h h x0 hhh not ax or do -ef h h h note : compressed hdlc control field stored in rhcr
peb 20550 pef 20550 functional description semiconductor group 75 01.96 note: rr-frames and i-frame with first data byte equal to ax h or d0 h -ef h are processed automatically. they are not stored in rfifo and no interrupt is issued. 2.2.7.5 special functions cyclical transmission (fully transparent) when the extended transparent mode is selected, the sacco supports the continuous transmission of the xfifo-contents. after having written 1 to 32 bytes to the xfifo, the command xrep/xtf/xme (xrep/ xtf in dma-mode) is executed. consequently the sacco repeatedly transmits the xfifo-data via pin txd. the cyclical transmission continues until the command (cmdr:xres) is executed or the bit xrep is reset. the inter frame timefill pattern is issued afterwards. when resetting xrep, data transmission is stopped after the next xfifo-cycle is completed, the xres-command terminates data transmission immediately. note: bit mode:cft must be set to "0". continuous transmission (dma-mode only) if data transfer from system memory to the sacco is done by dma (dma bit in xbch set), the number of bytes to be transmitted is usually defined via the transmit byte count registers xbch, xbcl. setting the "transmit continuously" bit (xc) in xbch, however, the byte count value is ignored and the dma-interface of the sacco will continuously request for transmit data any time 32 bytes can be stored in the xfifo. this feature can be used e.g. to ? continuously transmit voice or data onto a pcm-highway (clock mode 2, ext. transp. mode) ? transmit frames exceeding the byte count programmable in xbch, xbcl (> 4095 bytes). note: if the xc-bit is reset during continuous transmission, the transmit byte count becomes valid again, and the sacco will request the amount of dma-transfers programmed in xbc11 xbc0. otherwise the continuous transmission is stopped when a data underrun condition occurs in the xfifo, i.e. the dma- controller does not transfer further data to the sacco. in this case an abort sequence (min. 7 '1's) followed by the inter frame timefill pattern is transmitted (no crc-word is appended). receive length check the sacco offers the possibility to supervise the maximum length of received frames and to terminate data reception in case this length is exceeded.
peb 20550 pef 20550 functional description semiconductor group 76 01.96 this feature is enabled by setting the rc- (receive check) bit in rlcr and programming the maximum frame length via bits rl6rl0. according to the value written to rl6rl0, the maximum receive length can be adjusted in multiples of 32-byte blocks as follows: max. frame length = (rl + 1) 32. all frames exceeding this length are treated as if they have been aborted from the opposite station, i.e. the cpu is informed via a C rme-interrupt, and the C rab-bit in rsta register is set (clock mode 0 - 2) to distinguish between frames really aborted from the opposite station, the receive byte count (readable from registers rbch, rbcl) exceeds the maximum receive length (via rl6rl0) by one or two bytes in this case. 2.2.7.6 serial interface clock modes the sacco uses a single clock for transmit and receive direction. three different clock modes are provided to adapt the serial interface to different requirements. clock mode 0 serial data is transferred on rxd/txd, an external generated clock (double or single data rate) is forwarded via pin hdc. clock mode 1 serial data is transferred on rxd/txd, an external generated clock (double or single data rate) is forwarded via pin hdc. additionally a receive/transmit strobe provided on pin hfs is evaluated. clock mode 2 this operation mode has been designed for applications in time slot oriented pcm- systems. the sacco receives and transmits only during a certain time slot of programmable width (1 256 bits) and location with respect to a frame synchronization signal, which must be delivered via pin hfs. the position of the time slot can be determined applying the formula in figure 42 . tsn: defines the number of 8 bit time slots between the start of the frame (hfs edge) and the beginning of the time slot for the hdlc channel. the values for tsn are written to the registers tsar:7 ? 2 and tsn:7 ? 2. cs: additionally a clock shift of 0 ? 7 bits can be defined using register bits tsar:rsc21, tsax:xcs2 ? 1 and ccr2:xcs0, ccr2:rcs0.
peb 20550 pef 20550 functional description semiconductor group 77 01.96 together tsn and cs provide 9 bits to determine the location of the time slot for the hdlc channel. one of up to 64 time slots can be programmed independently for receive and transmit direction via the registers tsar and tsax. according to the value programmed via those bits, the receive/transmit window (time slot) starts with a delay of 1 (minimum delay) up to 512 clock periods following the frame synchronization signal and is active during the number of clock periods programmed via rccr, xccr (number of bits to be received/transmitted within a time slot) as shown in figure 42 . figure 42 location of time slots note: in extended transparent mode the width of the time slot has to be n 8 bit. itd05839 time-slot number tsn (6 bits) clock shift cs (3 bits) 9 bits xcs 2 rcs 0 rcs 1 rcs 2 xcs 1 xcs 0 ccr 2 tsnr tsnx tsar tsax time-slot hfs hdc width rccr, xccr (1...256 clocks) (1...512 clocks) delay 1+tsnx8+cs
peb 20550 pef 20550 functional description semiconductor group 78 01.96 clock mode 3 in clock mode 3 sacco-a is multiplexed among multiple subscribers under the control of the d-channel arbiter. it must be used only in combination with transparent mode 0. serial data is transferred on (received from) the d-channels of the epic-1 iom-2 interfaces. the data clock is derived from dcl. the d-channel arbiter generates the receive and transmit strobes. when bit ccr2:txde is set, the transmitted d-channel data can additionally be monitored on pin txda delayed by 1 bit. the timing is identical to clock mode 1 assuming a transmit strobe during the transmission of the third and fourth bit following the rising fsc-edge. receive status byte in clock mode 3 in clock mode 3 the receive status byte is modified when it is copied into rfifo. it contains the following information: vfr valid frame. indicates whether the received frame is valid ('1') or not ('0' invalid). a frame is invalid when C its length is not an integer multiple of 8 bits (n 8 bits), e.g. 25 bit, C it is too short, depending on the selected operation mode (transparent mode 0: 2 bytes minimum), C the frame was aborted from the transmitting station. rdo receive data overflow. a '1' indicates, that a rfifo-overflow has occurred within the actual frame. crc crc compare check. 0: crc check failed, received frame contains errors. 1: crc check o.k., received frame is error free. chad4..0 channel address 40. chad4..0 identifies on with iom-port/channel the corresponding frame was received: chad4..3: iom-port number (3 - 0) chad2..0: iom-channel number (7 - 0) note: the contents of the receive status register is not changed. bit 7 bit 0 vfr rdo crc chad4 chad3 chad2 chad1 chad0
peb 20550 pef 20550 functional description semiconductor group 79 01.96 2.2.7.7 serial port configuration the sacco supports different serial port configuration, enabling the use of the circuit in C point-to-point configurations C point-to-multi-point configurations C multi master configurations point-to-point configuration the sacco transmits frames without collision detection/resolution. (ccr1:sc1, sc0: 00) additionally the input cxd can be used as a "clear to send" strobe. transmission is inhibited by a "1" on the cxd-input. if "cxd" becomes "1" during the transmission of a frame, the frame is aborted and idle is transmitted. the cxd-pin is evaluated with the falling edge of hdc. when the "clear to send" function is not needed, cxd must be tied to v ss . bus configuration the sacco can perform a bus access procedure and collision detection. as a result, any number of hdlc-controllers can be assigned to one physical channel, where they perform statistical multiplexing. collisions are detected by automatic comparison of each transmitted bit with the bit received via the cxd input. for this purpose a logical and of the bits transmitted by parallel controllers is formed and connected to the input cxd. this may be implemented most simply by defining the output line to be open drain. consequently the logical and of the outputs is formed by simply tying them together ("wired or"). the result is returned to the cxd-input of all parallel circuits. when a mismatch between a transmitted bit and the bit on cxd is detected, the sacco- stops sending further data and idle is transmitted. as soon as it detects the transmit bus to be idle again, the controller automatically attempts to re-transmit its frame. by definition, the bus is assumed idle when x consecutive ones are detected in the transmit channel. normally x is equal to 8. an automatic priority adjustment is implemented in the multi master mode. thus, when a complete frame is successfully transmitted, x is increased to 10, and its value is restored to 8 when 10 '1's are detected on the bus (cxd). furthermore, transmission of new frames may be started by the controller after the 10 th '1'. this multi master, deterministic priority management ensures an equal right of access of every hdlc-controller to the transmission medium, thereby avoiding blocking situations.
peb 20550 pef 20550 functional description semiconductor group 80 01.96 compared to the version 1.2 the version 1.3 provides new features: push-pull operation may be selected in bus configuration (up to version 1.2 only open drain): ? when active txda / txdb outputs serial data in push-pull-mode. ? when inactive (interframe or inactive timeslots) txda / txdb outputs 1. note: when bus configuration with direct connection of multiple elics is used open drain option is still recommended. the push-pull option with bus configuration can only be used if an external tri-state buffer is placed between txda / txdb and the bus. due to the delay of tsca / tscb in this mode (see description of bits soc(0:1) in register ccr2 ( chapter 4.7.9 )) these signals cannot directly be used to enable this buffer. timing mode when the multi master configuration has been selected, the sacco provides two timing modes, differing in the period between sending data and evaluating the transmitted data for collision detection. C timing mode 1 (ccr1:sc1, sc0 = 01) data is output with the rising edge of the transmit clock via txd and evaluated 1/2 clock period later with the falling clock edge at the cxd pin. C timing mode 2 (ccr1:sc1, sc0 = 11) data is output with the falling clock edge and evaluated with the next falling clock edge. thus a complete clock period is available during data output and their evaluation. 2.2.7.8 test mode to provide support for fast and efficient testing, the sacco can be operated in the test mode by setting the tlp-bit in the mode-register. the serial input and output pins (txd, rxd) are connected generating a local loop back. as a result, the user can perform a self-test of the sacco. transmit lines txda/b are also active in this case, receive inputs rxda/b are deactivated.
peb 20550 pef 20550 functional description semiconductor group 81 01.96 2.2.8 d-channel arbiter the d-channel arbiter facilitates the simultaneous serving of multiple d-channels with one hdlc-controller (sacco-a) allowing a full duplex signaling protocol (e.g. lapd). it builds the interface between the serial input/output of sacco-channel a and the time slot oriented d-channels on the epic-1 iom-2 interface. the sacco-operation mode "transparent mode 0" has to be selected when using the arbiter. it is only possible to operate the d-channel arbiter with framing control modes 3, 6 and 7, (refer to register epic-1.cmd2:fc(2:0)). the arbiter consists of three sub blocks: ? arbiter state machine (asm): selects one subscriber for upstream d-channel assignment ? control channel master (ccm): issues the "d-channel available" information from the arbiter in the control channel ? transmit channel selector (tchs): selects one or a group of subscribers for d-channel assignment figure 43 d-channel arbiter its05840 transmit channel selector tchs mux mux control channel master ccm arbiter state machine asm sacco-a transmit channel sacco-a receive channel serial data out transmit strobe receive strobe serial data in port 0 port 1 port 2 port 3 down stream stream up port 3 port 2 port 1 port 0 ch0 ch1 ch2 ch3 ch4 ch5 ch6 ch7 iom -2 channels control data d-channel arbiter r
peb 20550 pef 20550 functional description semiconductor group 82 01.96 2.2.8.1 upstream direction in upstream direction the arbiter assigns the receive channel of sacco-a to one subscriber terminal. it uses an unidirectional control channel to indicate the terminals whether their d-channels are available or blocked. the control channel is implemented using different existing channel structures to close the transmission path between the line card hdlc- controller and the hdlc-controller in the subscriber terminal. on the line card, the control channel is either integrated in the c/i-channel or transmitted in the mr-bit depending on a programming of bit amo:cchh (octat-p -> c/i channel, ibc -> mr-bit), see also chapter 1.6.1.2 . arbiter state machine the d-channel assignment is performed by the arbiter state machine (asm), implementing the following functionality. (0) after reset or when sacco-a clock mode is not 3 the asm is in the state "suspended" . the user can initialize the arbiter and select the appropriate sacco clock mode (mode 3). (1) when the receiver of sacco-a is reset and clock mode 3 is selected the asm enters the state "full selection" . in this state all d-channels enabled in the d-channel enable registers (dce) are monitored. (2) upon the detection of the first '0' the asm enters the state "expect frame" . when simultaneously '0's are detected on different iom-2 channels, the lowest channels number is selected. channel and port address of the related subscriber are latched in arbiter state register (astate), the receive strobe for sacco-a is generated and the dce-values are latched into a set of slave registers (dces). additionally a suspend counter is loaded with the value stored in register scv. the counter is decremented after every received byte (4 iom-frames). (3) when the counter underflows before the state "expect frame" was left, the corresponding d-channel is considered to produce permanent bit errors (typical pattern: 111011101011). the asm emits an interrupt, disables the receive strobe and enters the state "suspended" again. the user can determine the affected channel by reading register astate. in order to reactivate the asm the user has to reset the sacco-a receiver. (4) when seven consecutive '1's are detected in the state "expect frame" before the suspend counter underflows the asm changes to the state "limited selection" . the previously detected '0' is considered a single bit error (typical pattern: 11111101111111111). the receive strobe is turned off and the dces-bit related to the corresponding d-channel is reset, i.e. the subscriber is temporarily excluded of the priority list.
peb 20550 pef 20550 functional description semiconductor group 83 01.96 (5) when sacco-a indicates the recognition of a frame (frame indication after receiving 3 bytes incl. the flag) before the suspend counter underflows the asm enters the state "receive frame" . (6) the asm-state changes from "receive frame" to "limited selection" when sacco-a indicates "end of frame". the receive strobe is turned off and the dces- bit related to the corresponding d-channel is reset. the asm again monitors the d-channels but limited to the group enabled in the slave registers dces "anded" with dce. the "and" function guarantees, that the user controlled disabling of a subscriber has immediate effect. (7) when the asm detects a '0' on the serial input line it enters the state "expect frame" . channel and port address of the related subscriber are latched in the arbiter state register (astate), the receive strobe for sacco-a is generated and the suspend counter is loaded with the value stored in register scv. the counter is decremented after every received byte. when simultaneously '0's are detected on different iom-2 channels, the lowest channel is selected. (8) when the asm does not detect any '0' on the remaining serial input lines during n iom-frames (n is programmed in the register amo) it re-enters the state "full selection" . the list of monitored d-channels is then increased to the group selected in the user programmable dce-registers. in order to avoid arbiter locking n has to be greater than the value described in chapter 2.2.8.3 or must be set to 0 (see chapter 4.8.1 arbiter mode register). (9) if n is set to 0, then the state limited selection is skipped. the described combination of dce and dces implements a priority scheme guaranteeing that (almost) simultaneous requesting subscribers are served sequentially before one is selected a second time. the current asm-state is accessible in astate7:5.
peb 20550 pef 20550 functional description semiconductor group 84 01.96 figure 44 arbiter state machine (asm) itd05841 sus- pended strobe on latch ch-address restart suspend counter latch dces registers * * * * frame expect full selection receive frame limited selection * * * counter restart suspend latch ch-address strobe on 2 "0" strobe off reset dces[i] * * * * interrupt strobe off * * reset dces[i] strobe off "0" 7 4 6 3 5 1 0 8 sacco_a : frame end sacco_a : frame indication suspend counter underflow elic reset or sacco_a : clock mode < >3 sacco_a : receiver reset and clock mode = 3 n iom frames without "0" 7* 1" " r r am0 : fcc4...0=0 9 sacco_a : frame end strobe off reset dces[i] * *
peb 20550 pef 20550 functional description semiconductor group 85 01.96 control channel master the control channel master (ccm) issues the "d-channel available" information in the control channel as shown in table 13 . if a d-channel is not enabled by the arbiter, the control channel passes the status, stored in the epic-1 control memory (c/i, mr). for correct operation of the arbiter this status bit has to contain the "blocked" information for all d-channels under control of the arbiter. if the asm is in the state "suspended" the arbiter functionality depends on the status of the control channel master: the ccm is enabled if amo:cchm = '1'. all subscribers will be sent the "available/ blocked" information (c/i or mr) as programmed in the control memory. however, the control memory should be programmed as "blocked". the ccm is disabled if amo:cchm = '0'. all in the dce-registers enabled subscribers (dce = '1') will be sent the information "available" (which has a higher priority than the "blocked" information from epic-1). if the asm is in the state "full selection" all d-channels are marked to be available which are enabled in the user programmable dce-registers. when the user reprograms a dce-register this has an immediate effect, i.e. a currently transmitting subscriber can be forced to abort its message. if the asm is in the state "limited selection" the subscribers which are currently enabled in dce and dces get the information "available"; they can access the d-channel. the dce/dces and ing is performed in order to allow an immediate disabling of individual subscribers. in the state "expect frame" and "receive frame" all channels except one (addressed by astate4:0) have blocked d-channels. the disabling of the currently addressed d-channel in dce has an immediate effect; the transmitter (hdlc-controller in the subscriber terminal) is forced to abort the current frame. depending on the programming of amo:cchh the available/blocked information is coded in the c/i-channel or in the mr-bit. table 13 control channel implementation the cchm is activated independently of the sacco-clock mode by programming amo:cchm. even when the asm is disabled (clock mode not 3) the cchm can be activated. in this case the content of the dce-registers defines which d-channels are enabled. cchh control via available blocked 1mr10 0 c/i x0xx x1xx
peb 20550 pef 20550 functional description semiconductor group 86 01.96 when a d-channel is enabled in the dce-register and available, the control channel master takes priority over the c/i- (mr) values stored in the epic-1 control memory and writes out either mr = 1 or c/i = x0xx. when a d-channel is enabled but blocked, the control channel master simply passes the c/i- (mr) values which are stored in the epic-1 control memory. these values should have been programmed as mr = 0 or c/ i = x1xxx. when a d-channel is disabled in the dce-register the control channel master simply passes the c/i- (mr) values which are stored in the epic-1 control memory. this gives the user the possibility to exclude a d-channel from the arbitration but still decide whether the excluded channel is available or blocked. overview of different conditions for control channel handling/information sent to subscribers: 2.2.8.2 downstream direction in downstream direction no channel arbitration is necessary because the sequentiality of the transmitted frames is guaranteed. in order to define iom-channel and port number to be used for a transmission, the transmit channel selector (tchs) provides a transmit address register (xdc) which the user has to write before a transmit command (xtf) is executed. depending on the programming of the xdc-register the frame is transmitted in the specified d-channel or send as broadcast message to the broadcast group defined in the registers bcg1-4. due to the continuous frame transmission feature of the sacco, the full 16-kbit/s bandwidth of the d-channel can be utilized, even when addressing different subscribers. note: the broadcast group must not be changed during the transmission of a frame clock mode 3 xx asm state not suspended suspended x cchm '1' = enabled '1' = enabled '0' = disabled subscriber in dces enabled disabled enabled disabled enabled disabled information sent to subscribers = "available" or "blocked" according to the d-channel arbiter state (ccm) content of the epic-1 control memory- (c/i or mr) content of the epic-1 control memory- (c/i or mr) content of the epic-1 control memory- (c/i or mr) available! content of the epic-1 control memory- (c/i or mr)
peb 20550 pef 20550 functional description semiconductor group 87 01.96 2.2.8.3 control channel delay depending on the selected system configuration different delays between the activation of the control channel and the corresponding d-channel response occur. table 14 control channel delay examples beware of arbiter locking! in the state "limited selection", the d-channel arbiter sends the "blocked" information to the terminal from which the last hdlc-frame was received. since the "blocked" information reaches the terminal with several iom-frames delay t ccdd (e.g. after 5 125 m s) the terminal may already have started sending a second hdlc-frame. on reception of the "blocked" information the terminal immediately aborts this frame. since the abort sequence of the second frame reaches the elic with several frames delay t dcdu , the full selection counter value must be set so that the d-channel arbiter re- enters the state "full selection" only after the abort sequence of the second frame has reached the elic. if the d-channel arbiter re-enters the "full selection" state (in which it again sends an "available" information to the terminal) before the abort sequence has reached the elic, it would mistake a '0' of the second frame as the start of a new frame. when the delayed abort sequence arrives at the elic, the d-channel arbiter would then switch back to the state "limited selection" and re-block the terminal. thus the d-channel arbiter would toggle between sending "available" and "blocked" information to the terminal, forever aborting the terminal` s frame. the arbiter would have locked. number of frames (= 125 m s) system configuration circuit chain blocked ? available available ? blocked min. max. min. max. u pn line card - - u pn phone elic + octat-p + isac-p te 4848 u pn line card - - s 0 adapter - - s 0 phone elic + octat-p + isac-p te + sbcx + isac-s 91359 u pn line card - - u pn adapter - - u pn phone elic + octat-p + isac-p te + isac-p te + isac-p te 913913 s 0 line card - s 0 phone elic + quat-s + isac-s te 4848
peb 20550 pef 20550 functional description semiconductor group 88 01.96 in order to avoid such a locking situation the time t dfs min. (value in the amo-register) has to be greater then the maximum delay t ccdd (for the case "available" ? "blocked") plus the delay t dcdu . for the quat-s a value of 0 is recommended for the suspend counter (register scv). for the octat-p it is recommended to program scv=1 in the case of 2 terminals scv=0 if one terminal is used. see the following diagram: figure 45 2.2.8.4 d-channel arbiter co-operating with quat-s circuits when d-channel multiplexing is used on a s 0 -bus line card, only the transmit channel selector of the arbiter is used. the arbiter state machine can be disabled because the quat-s offers a self arbitration mechanism between several s 0 -buses. this feature is implemented by building a wired or connection between the different e-channels. as a result, the arbitration function does not add additional delays. this means that the priority management on the s 0 -bus (two classes) still may be used, allowing the mixture of signaling and packet data. nevertheless, it still can make sense to use the elic arbiter in this configuration. the advantage of using the arbiter is, that if one terminal fails the others will not be blocked. itd05842 t dcdu ccdd t t dfs t dfs min. ls fs ls ef + rf fs + ef rf end start start abort abort start 1. frame 2. frame 2. frame hdlc frame from terminal at the arbiter "available" "blocked" passes control channel d-channel arbiter states fs = full selection ls = limited selection ef = expect frame rf = receive frame t dfs t dfs min. t dcdu t ccdd = delay for switch to "full selection" (value in amo) = min. delay for not locking condition i = d-channel delay upstream = control channel delay downstream note: if the full selection counter value (amo : fcc4...0) is not changed from its reset value 00 , then the d-channel arbiter (asm) skips the state "limited selection". dcdu t t ccdd ccdd t t ccdd dfs t h
peb 20550 pef 20550 operational description semiconductor group 89 01.96 3 operational description the elic, designed as a flexible line-card controller, has the following main applications: C digital line cards, with the cfi typically configured as iom-2, iom-1 (mux) or sld. C analog line cards, with the cfi typically configured as iom-2 or sld. C key systems, where the elics ability to mix cfi-configurations is utilized. to operate the elic the user must be familiar with the devices microprocessor interface, interrupt structure and reset logic. also, the operation of the elics component parts should be understood. the devices major components are the epic-1, the sacco-a and sacco-b, and the d-channel arbiter. while epic-1, sacco-a and sacco-b may all be operated independently of each other, the d-channel arbiter can be used to interface the sacco-a to the cfi of the epic-1. this mode of operation may be considered to utilize the elic most extensively. the initialization example, with which this operational description closes, will therefore set the elic to operate in this manner. 3.1 microprocessor interface operation the elic is programmed via an 8-bit parallel interface that can be selected to be (1) motorola type, with control signals ds , r or w , and css or cse . (2) siemens / intel non-multiplexed bus type, with control signals wr , rd , and css or cse . (3) siemens / intel multiplexed address/data bus type, with control signals ale, wr , rd , and css or cse . the selection is performed via pin ale as follows: ale tied to v dd t (1) ale tied to v ss t (2) edge on ale t (3) the occurrence of an edge on ale, either positive or negative, at any time during the operation immediately selects interface type (3). a return to one of the other interface types is only possible by issuing a hardware reset. with an active css , the addressing selects the fifos and registers of the sacco-a or sacco-b. with an active cse , the addressing selects the memories and/or registers of the C top level interrupt, C epic-1, C d-channel arbiter, C parallel ports, or C watchdog timer.
peb 20550 pef 20550 operational description semiconductor group 90 01.96 when using the siemens / intel multiplexed interface, the elic can be addressed C either with even addresses only (i.e. ad0 always 0), which allows data always to be transferred in the low data byte, C or with even and odd addresses, so that the address range does not extend past 7f h . the selection is performed with the emod.dmxad-bit as follows dmxad = 1 t even addresses only, dmxad = 0 t reduced address range (same addresses as in demux mode). as a feature of interest to those wishing to use only the epic-1 component of the elic, note that in the non-multiplexed mode the omdr.rbs-bit and the a4-address pin are internally ored. in non-multiplexed mode, it is thus possible to tie the a4-address pin low, and to address the epic-1 using the omdr.rbs-bit and pins a3 ? a0. note: it is recommended to tie unused input pins to a defined voltage level. 3.2 interrupt structure and logic the elic-signals events that the m p should know about immediately by emitting an interrupt request on the int -line. to indicate the detailed cause of the request a tree of interrupt status registers is provided. figure 46 elic ? interrupt structure itd05843 exb iep ida iwd icb exa ica ista_a mask_a exir_a ista_b mask_b exir_b mask_e ista_e watchdog timer d-channel arbiter epic hdlc channel b, extended hdlc channel b hdlc channel a, extended hdlc channel a ista mask r
peb 20550 pef 20550 operational description semiconductor group 91 01.96 when serving an elic-interrupt, the user first reads the top level interrupt status register (ista). this register flags which subblock has generated the request. if a subblock can issue different interrupt types a local ista/exir exists. a read of the top level ista-register resets bits iwd and ida. the other bits are reset when reading the corresponding local ista- or exir-registers. the int -output is level active. it stays active until all interrupt sources have been serviced. if a new status bit is set while an interrupt is being serviced, the int stays active. however, for the duration of a write access to the mask-register the int -line is deactivated. when using an edge-triggered interrupt controller, it is thus recommended to rewrite the mask-register at the end of any interrupt service routine. masking interrupts the watchdog timer interrupt can not be masked. setting the mask.ida-bit masks the ista.ida-interrupt: a d-channel arbiter interrupt will then neither activate the int -line nor be indicated in the ista-register. setting the mask.iep/exb/icb/exa or ica-bits only masks the int -line; that is, with a set top level mask bit these epic-1 and sacco interrupts are indicated in the ista-register but they will not activate the int -line. for the ista_e, ista_a and ista_b registers local masking is also provided. every interrupt source indicated in these registers can be selectively masked by setting the respective bit of the local mask-register. such locally masked interrupts will not be indicated in the local or the top ista-register, nor will they activate the int -line. locally masked interrupts are internally stored. thus, resetting the local mask will release the interrupt to be indicated in the local interrupt register, flagged in the top level ista-register, and to activate the int -line. 3.3 clocking to operate properly, the elic always requires a pdc-clock. to synchronize the pcm-side, the elic should normally also be provided with a pfs- strobe. in most applications, the dcl and fsc will be output signals of the elic, derived from the pdc via prescalers. if the required cfi-data rate cannot be derived from the pdc, dcl and fsc can also be programmed as input signals. this is achieved by setting the epic-1 cmd1:css-bit. frequency and phase of dcl and fsc may then be chosen almost independently of the frequency and phase of pdc and pfs. however, the cfi-clock source must still be synchronous to the pcm-interface clock source; i.e. the clock source for the cfi- interface and the clock source for the pcm-interface must be derived from the same master clock. chapter 5.2.2 provides further details on clocking.
peb 20550 pef 20550 operational description semiconductor group 92 01.96 3.4 reset after power-up the elic is locked in the "resetting" state. neither read not write accesses are possible while the elic is resetting. there are two ways to release the elic into the operational/programmable state: a) with an active pdc, 8 pfs-cycles release the elic from the "resetting state". b) with an active pdc, a resex-pulse of at least 4 pdc-clock periods also releases the elic from the "resetting" state. on being released from the "resetting" state, the elic has completed a reset. its registers and fifos now hold the reset values described in chapter 4.1 , and can be read from and written to normally. chapter 2.2.4 provides a functional description of the reset logic. 3.5 epic ? -1 operation the epic-1 component of the elic is principally an intelligent switch of pcm-data between two serial interfaces, the system interface (pcm-interface) and the configurable interface (cfi). up to 128 channels per direction can be switched dynamically between the cfi and the pcm-interfaces. the epic-1 performs non-blocking space and time switching for these channels which may have a bandwidth of 16, 32 or 64 kbit/s. both interfaces can be programmed to operate at different data rates of up to 8192 kbit/ s. the pcm-interface consists of up to four duplex ports with a tristate control signal for each output line. the configurable interface can be selected to provide either four duplex ports or 8 bi-directional (i/o) ports. the configurable interface incorporates a control block (layer-1 buffer) which allows the m p to gain access to the control channels of an iom- (isdn-oriented modular) or sld- (subscriber line data) interface. the epic-1 can handle the layer-1 functions buffering the c/i and monitor channels for iom compatible devices and the feature control and signaling channels for sld compatible devices. one major application of the epic-1 is therefore as line card controller on digital and analog line cards. the layer-1 and codec devices are connected to the cfi, which is then configured to operate as, iom-2, sld or multiplexed iom-1 interface. the configurable interface of the epic-1 can also be configured as plain pcm-interface i.e. without iom- or sld-frame structure. since its possible to operate the two serial interfaces at different data rates, the epic-1 can then be used to adapt two different pcm- systems. the epic-1 can handle up to 32 isdn-subscribers with their 2b + d channel structure or up to 64 analog subscribers with their 1b channel structure in iom-configuration. in sld- configuration up to 16 analog subscribers can be accommodated. the system interface is used for the connection to a pcm-back plane. on a typical digital line card, the epic-1 switches the isdn b-channels and, if required, also the d-channels
peb 20550 pef 20550 operational description semiconductor group 93 01.96 to the pcm-back plane. due to its capability to dynamically switch the 16-kbit/s d-channel, the epic-1 is one of the fundamental building blocks for networks with either central, decentral or mixed signaling and packet data handling architecture. 3.5.1 pcm-interface the serial pcm-interface provides up to four duplex ports consisting each of a data transmit (txd#), a data receive (rxd#) and a tristate control (tsc# ) line. the transmit direction is also referred to as the upstream direction, whereas the receive direction is referred to as the downstream direction. data is transmitted and received at normal ttl / cmos-levels, the output drivers being of the tristate type. unassigned time slots may be either be tristated, or programmed to transmit a defined idle value. the selection of the states "high impedance" and "idle value" can be performed with a two bit resolution. this tristate capability allows several devices to be connected together for concentrator functions. if the output driver capability of the epic-1 should prove to be insufficient for a specific application, an external driver controlled by the tsc# can be connected. the pcm-standby function makes it possible to switch all pcm-output lines to high impedance with a single command. internally, the device still works normally. only the output drivers are switched off. the number of time slots per 8-khz frame is programmable in a wide range (from 4 to 128). in other words, the pcm-data rate can range between 256 kbit/s up to 8192 kbit/s . since the overall switching capacity is limited to 128 time slots per direction, the number of pcm-ports also depends on the required number of time slots: in case of 32 time slots per frame (2048 kbit/s) for example, four highways are available, in case of 128 time slots per frame (8192 kbit/s), only one highway is available. the partitioning between number of ports and number of bits per frame is defined by the pcm-mode. there are four pcm-modes. the timing characteristics at the pcm-interface (data rate, bit shift, etc.) can be varied in a wide range, but they are the same for each of the four pcm-ports, i.e. if a data rate of 2048 kbit/s is selected, all four ports run at this data rate of 2048 kbit/s. the pcm-interface has to be clocked with a pcm-data clock (pdc) signal having a frequency equal to or twice the selected pcm-data rate. in single clock rate operation, a frame consisting of 32 time slots, for example, requires a pdc of 2048 khz. in double clock rate operation, however, the same frame structure would require a pdc of 4096 khz. for the synchronization of the time slot structure to an external pcm-system, a pcm- framing signal (pfs) must be applied. the epic-1 evaluates the rising pfs edge to reset the internal time slot counters. in order to adapt the pfs-timing to different timing requirements, the epic-1 can latch the pfs-signal with either the rising or the falling pdc- edge. the pfs-signal defines the position of the first bit of the internal pcm-frame.
peb 20550 pef 20550 operational description semiconductor group 94 01.96 the actual position of the external upstream and downstream pcm-frames with respect to the framing signal pfs can still be adjusted using the pcm-offset function of the epic-1. the offset can then be programmed such that pfs marks any bit number of the external frame. furthermore it is possible to select either the rising or falling pdc-clock edge for transmitting and sampling the pcm-data. usually, the repetition rate of the applied framing pulse pfs is identical to the frame period (125 m s). if this is the case, the loss of synchronism indication function can be used to supervise the clock and framing signals for missing or additional clock cycles. the epic-1 checks the pfs-period internally against the duration expected from the programmed data rate. if, for example, double clock operation with 32 time slots per frame is programmed, the epic-1 expects 512 clock periods within one pfs-period. the synchronous state is reached after the epic-1 has detected two consecutive correct frames. the synchronous state is lost if one bad clock cycle is found. the synchronization status (gained or lost) can be read from an internal register and each status change generates an interrupt. 3.5.2 configurable interface the serial configurable interface (cfi) can be operated either in duplex modes or in a bi- directional mode. in duplex modes the epic-1 provides up to four ports consisting each of a data output (dd#) and a data input (du#) line. the output pins are called "data downstream" pins and the input pins are called "data upstream" pins. these modes are especially suited to realize a standard serial pcm-interface (pcm-highway) or to implement an iom (isdn-oriented modular) interface. the iom-interface generated by the epic-1 offers all the functionality like c/i- and monitor channel handling required for operating all kinds of iom compatible layer-1 and codec devices. in bi-directional mode the epic-1 provides eight bi-directional ports (sip). each time slot at any of these ports can individually be programmed as input or output. this mode is mainly intended to realize an sld-interface (serial line data). in case of an sld- interface the frame consists of eight time slots where the first four time slots serve as outputs (downstream direction) and the last four serve as inputs (upstream direction). the sld-interface generated by the epic-1 offers signaling and feature control channel handling. data is transmitted and received at normal ttl/cmos-levels at the cfi. tristate or open-drain output drivers can be selected. in case of open-drain drivers, external pull- up resistors are required. unassigned output time slots may be switched to high impedance or be programmed to transmit a defined idle value. the selection between the states "high impedance" or "idle value" can be performed on a per time slot basis.
peb 20550 pef 20550 operational description semiconductor group 95 01.96 the cfi-standby function switches all cfi-output lines to high impedance with a single command. internally the device still works normally, only the output drivers are switched off. the number of time slots per 8-khz frame is programmable from 2 to 128. in other words, the cfi-data rate can range between 128 kbit/s up to 8192 kbit/s . since the overall switching capacity is limited to 128 time slots per direction, the number of cfi- ports also depends on the required number of time slots: in case of 32 time slots per frame (2048 kbit/s) for example, four highways are available, in case of 128 time slots per frame (8192 kbit/s), only one highway is available. usually, the number of bits per 8-khz frame is an integer multiple of the number of time slots per frame (1 time slot = 8 bits). the timing characteristics at the cfi (data rate, bit shift, etc.) can be varied in a wide range, but they are the same for each of the four cfi-ports, i.e. if a data rate of 2048 kbit/ s is selected, all four ports run at this data rate of 2048 kbit/s. it is thus not possible to have one port used in iom-2 line card mode (2048 kbit/s) while another port is used in iom-2 terminal mode (768 kbit/s)! the clock and framing signals necessary to operate the configurable interface may be derived either from the clock and framing signals of the pcm-interface (pdc and pfs pins), or may be fed in directly via the dcl- and fsc-pins. in the first case, the cfi-data rate is obtained by internally dividing down the pcm-clock signal pdc. several prescaler factors are available to obtain the most commonly used data rates. a cfi reference clock (crcl) is generated out of the pdc-clock. the pcm- framing signal pfs is used to synchronize the cfi-frame structure. additionally, the epic-1 generates clock and framing signals as outputs to operate the connected subscriber circuits such as layer-1 and codec filter devices. the generated data clock dcl has a frequency equal to or twice the cfi-data rate. the generated framing signal fsc can be chosen from a great variety of types to suit the different applications: iom-2, multiplexed iom-1, sld, etc. note that if pfs is selected as the framing signal source, the fsc-signal is an output with a fixed timing relationship with respect to the cfi-data lines. the relationship between fsc and the cfi-frame depends only on the selected fsc-output wave form (cmd2- register). the cfi-offset function shifts both the frame and the fsc-output signal with respect to the pfs-signal. in the second case, the cfi-data rate is derived from the dcl-clock, which is now used as an input signal. the dcl-clock may also first be divided down by internal prescalers before it serves as the cfi reference clock crcl and before defining the cfi-data rate. the framing signal fsc is used to synchronize the cfi-frame structure. 3.5.3 switching functions the major tasks of the epic-1 part is to dynamically switch pcm-data between the serial pcm-interface, the serial configurable interface (cfi) and the parallel m p-interface. all possible switching paths are shown in figure 47 .
peb 20550 pef 20550 operational description semiconductor group 96 01.96 figure 47 switching paths inside the epic ? -1 note that the time slot selections in upstream direction are completely independent of the time slot selections in downstream direction. cfi - pcm time slot assignment switching paths 1 and 2 of figure 47 can be realized for a total number of 128 channels per path, i.e. 128 time slots in upstream and 128 time slots in downstream direction. to establish a connection, the m p writes the addresses of the involved cfi and pcm time slots to the control memory. the actual transfer is then carried out frame by frame without further m p-intervention. the switching paths 5 and 6 can be realized by programming time slot assignments in the control memory. the total number for such loops is limited to the number of available time slots at the respective opposite interface, i.e. looping back a time slot from cfi to cfi requires a spare upstream pcm time slot and looping back a time slot from pcm to pcm requires a spare downstream and upstream cfi time slot. time slot switching is always carried out on 8-bit time slots, the actual position and number of transferred bits can however be limited to 4-bit or 2-bit sub time slots within these 8-bit time slots. on the cfi-side, only one sub time slot per 8-bit time slot can be switched, whereas on the pcm-interface up to 4 independent sub time slots can be switched. examples are given in chapter 5.3 . its05844 p p interface epic r 1 2 3 4 5 6 c f i p c m
peb 20550 pef 20550 operational description semiconductor group 97 01.96 sub time slot switching sub time slot positions at the pcm-interface can be selected at random, i.e. each single pcm time slot-may contain any mixture of 2- and 4-bit sub time slots. a pcm time slot may also contain more than one sub time slot. on the cfi however, two restrictions must be observed: C each cfi time slot may contain one and one only sub time slot. C the sub-slot position for a given bandwidth within the time slot is fixed on a per port basis. for more detailed information on sub-channel switching please refer to chapter 5.4.2 . m p-transfer switching paths 3 and 4 of figure 47 can be realized for all available time slots. path 3 can be implemented by defining the corresponding cfi time slots as " m p-channels" or as "pre-processed channels". each single time slot can individually be declared as " m p-channel" . if this is the case, the m p can write a static 8-bit value to a downstream time slot which is then transmitted repeatedly in each frame until a new value is loaded. in upstream direction, the m p can read the received 8-bit value whenever required, no interrupts being generated. the "pre-processed channel" option must always be applied to two consecutive time slots. the first of these time slots must have an even time slot number. if two time- slots are declared as "pre-processed channels", the first one can be accessed by the monitor/ feature control handler, which gives access to the frame via a 16-byte fifo. although this function is mainly intended for iom- or sld-applications, it could also be used to transmit or receive a "burst" of data to or from a 64-kbit/s channel. the second pre- processed time slot, the odd one, is also accessed by the m p. in downstream direction a 4-, 6- or 8-bit static value can be transmitted. in upstream direction the received 8-bit value can be read. additionally, a change detection mechanism will generate an interrupt upon a change in any of the selected 4, 6 or 8 bits. pre-processed channels are usually programmed after control memory (cm) reset during device initialization. resetting the cm sets all cfi time slots to unassigned channels (cm code '0000'). of course, pre-processed channels can also be initialized or re-initialized in the operational phase of the device. to program a pair of pre-processed channels the correct code for the selected handling scheme must be written to the cm. figure 48 gives an overview of the available pre- processing codes and their application. for further detail, please refer to chapter 5.5 of the epic-1 application manual. note: to operate the d-channel arbiter, an iom-2 configuration with central-, or decentral d-channel handling should be programmed. with the d-channel arbiter enabled, d-channel bits are handled by the sacco-a.
peb 20550 pef 20550 operational description semiconductor group 98 01.96 figure 48 pre-processed channel codes itd05846 signaling channel feature control channel sig m m m m m m m m control channel monitor channel m m sig m m m m m m m m d d mmmmmm mm c/i mm monitor channel control channel control channel monitor channel m m c/i m m m m m m m m 1 1 0 1 0 1 0 1 xx xx x 0000 xx x c/i 1 1 1 0 0 0 1 1 1 1 000 11 1 c/i x x 0 1 0 1 1 0 11 odd time-slot even time-slot upstream preprocessed channels input from the configurable interface odd control memory address maar = 1......1 code field macr = 011... data field madr = ...... madr = ...... data field macr = 0111... code field maar = 1......1 even control memory address (e.g. sld) signaling 8 bit 6 bit iom ) r (e.g. analog signaling handling d channel central handling d channel decentral sig actual value sig stable value xx -- : monitor channel bits, these bits are treated by the monitor/feature control handler m - : inactive sub. time-slot, in downstream direction these bits are tristated (omdr : cos = 0) or set to logical 1 (omdr :cos = 1) c/i : command/indication channel, these bits are exchanged between the cfi in/output and the cm data field. a change of the c/i bits in upstream direction causes an interrupt (ista : sfi). the address of the change is stored in the cififo d : d channel, these d channel bit switched to and from the pcm interface, or handled by the sacco_a, it the d channel arbiter is enabled. sig : signaling channel, these bits are exchanged between the cfi in/output and tne cm data field. the sig value which was present in the last frame is stored as the actual value in the even address cm location. the stable value is updated if a valid change in the actual value has been detected according to the last look algorithm. a change of the sig stable value in upstream direction causes an interrupt (ista : cfi). the address of the change is stored in the cififo. actual value stable value time-slot a 2 bit sub. pcm code for pointer to a pcm time-slot du application sig actual value sig stable value itd05845 decentral d channel handling central d channel handling signaling (e.g. analog r iom ) 6 bit 8 bit signaling (e.g. sld) sacco_a d channel handling dd application even control memory address maar = 0......0 code field macr = 0111... data field madr = ...... madr = ...... data field macr = 0111... code field maar = 0......1 odd control memory address output at the configurable interface downstream preprocessed channels even time-slot odd time-slot 1 0 1 0 11 1 c/i m r when using handshaking, set mr = 1 sig 0 1 0 1 1 0 1 0 sig 11 c/i 1 1 1 0 1 0 1 1 1 1 000 11 1 c/i x x x 1 1 0 1 x x xx x xx xx x 1 0 11 xx x xx xx x 1 0 11 xx x xx xx x 1 0 11 xx x pointer to a pcm time-slot pcm code for a 2 bit sub. time-slot mmmmmm mm c/i mm monitor channel control channel control channel monitor channel m m c/i m m m m m m m m dd mmmmmm mm sig mm monitor channel control channel mmmmmm mm sig feature control channel signaling channel d d mmmmmm mm c/i mm monitor channel control channel --
peb 20550 pef 20550 operational description semiconductor group 99 01.96 synchronous transfer for two channels, all switching paths of figure 47 can also be realized using synchronous transfer. the working principle is that the m p specifies an input time slot (source) and an output time slot (destination). both source and destination time slots can be selected independently from each other at either the pcm- or cfi-interfaces. in each frame, the epic-1 first transfers the serial data from the source time slot to an internal data register from where it can be read and if required overwritten or modified by the m p. this data is then fed forward to the destination time slot. chapter 5.7 provides examples of such transfers. 3.5.4 special functions hardware timer the epic-1 provides a hardware timer which continuously interrupts the m p after programmable time periods. the timer period can be selected in the range of 250 m s up to 32 ms in multiples of 250 m s. beside the interrupt generation, the timer can also be used to determine the last look period for 6 and 8-bit signaling channels on iom-2 and sld-interfaces and for the generation of an fsc-multiframe signal (see chapter 5.8.1 ). power and clock supply supervision the + 5 v power supply line and the clock lines are continuously checked by the epic-1 for spikes that may disturb its proper operation. if such an inappropriate clocking or power failure occurs, the m p is requested to reinitialize the device. 3.6 sacco - a/b chapter 2.2.8 provides a detailed functional sacco-description. this operational section will therefore concentrate on outlining how to run these hdlc-controllers. with the sacco initialized as outlined in chapter 3.8.3 , it is ready to transmit and receive data. data transfer is mainly controlled by commands from the cpu to the sacco via the cmdr-register, and by interrupt indications from sacco to cpu. additional status information, which need not trigger an interrupt, is available in the star-register. 3.6.1 data transmission in interrupt mode in transmit direction 2 32-byte fifo-buffers (transmit pools) are provided for each channel. after checking the xfifo-status by polling the transmit fifo write enable bit (xfw in star-register) or after a transmit pool ready (xpr) interrupt, up to 32 bytes may be entered by the cpu to the xfifo. the transmission of a frame can then be started issuing a xtf/xpd or xdd command via the cmdr-register. if prepared data is sent, an end of message indication
peb 20550 pef 20550 operational description semiconductor group 100 01.96 (cmdr:xme) must also be set. if transparent or direct data is sent, cmdr:xme may but need not be set. if cmdr:xme is not set, the sacco will repeatedly request for the next data block by means of a xpr-interrupt as soon as the cpu accessible part of the xfifo is available. this process will be repeated until the cpu indicates the end of message per command, after which frame transmission is ended by appending the crc and closing flag sequence. if no more data is available in the xfifo prior to the arrival of xme, the transmission of the frame is terminated with an abort sequence and the cpu is notified per interrupt (exir:xdu). the frame may also be aborted per software (cmdr:xres). figure 49 outlines the data transmission sequence from the cpus point of view: figure 49 interrupt driven transmission sequence (flow diagram) itd05847 xpr interrupt or set xfw bit in star register n command write data (up to 32 bytes) to xfifo end of massage ? command xme+ xtf/xpd or xdd end transmit pool ready ? start n y y xtf or xdd
peb 20550 pef 20550 operational description semiconductor group 101 01.96 ) figure 50 interrupt driven transmission sequence example 3.6.2 data transmission in dma-mode prior to data transmission, the length of the frame to be transmitted must be programmed via the transmit byte count registers (xbch, xbcl). the resulting byte count equals the programmed value plus one byte. since 12 bits are provided via xbch, xbcl (xbc11 ? xbc0) a frame length between 1 and 4096 bytes can be selected. having written the transmit byte counter registers, data transmission can be initiated by command xtf/xpd or xdd. the sacco will then autonomously request the correct amount of write bus cycles by activating the drqt-line. depending on the programmed frame length, block data transfers of n 32-bytes + remainder are requested every time the 32 byte transmit pool is accessible to the dma-controller. the following figure gives an example of a dma driven transmission sequence with a frame length of 70 bytes, i.e. programmed transmit byte count (xcnt) equal 69 bytes. figure 51 dma driven transmission example itd08036 6 32 32 serial interface sacco cpu interface wr 32 bytes transmit frame (70 bytes) xtf xpr wr xpr xpr command wr 6 bytes xtf xtf + xme 32 bytes itd05848 drqt (6) 6 32 32 wr serial interface sacco cpu interface wr wr drqt (32) xtf wr; xcnt = 69 transmit frame (70 bytes) xpr drqt (32)
peb 20550 pef 20550 operational description semiconductor group 102 01.96 3.6.3 data reception in interrupt mode in receive direction 2 32-byte fifo-buffers (receive pools) are also provided for each channel. there are two different interrupt indications concerned with the reception of data: C a rpf (receive pool full) interrupt indicates that a 32-byte block of data can be read from the rfifo with the received message not yet complete. C a rme (receive message end) interrupt indicates that the reception of one message is completed, i.e. either C one message with less than 32 bytes, or the C last part of a message with more than 32 bytes is stored in the cpu accessible part of the rfifo. the cpu must handle the rpf-interrupt before additional 32 bytes are received via the serial interface, as failure to do so causes a rdo (receive data overflow). status information about the received frame is appended to the frame in the rfifo. this status information follows the format of the rsta-register, unless using the sacco-a in clock mode 3. the cpu can read the length of the received message (including the appended receive status byte) from the rbch- and rbcl-registers. after the received data has been read from the rfifo, this must be explicitly acknowledged by the cpu issuing a rmc- (receive message complete) command! the following figure gives an example of an interrupt controlled reception sequence, supposing that a long frame (66 bytes) followed by a short frame (6 bytes) are received. figure 52 interrupt driven reception example itd05849 6 2 32 32 receive 66 bytes receive rmc rme byte count serial interface sacco cpu interface rme rfifo 7 bytes rmc 3 bytes rfifo count byte rpf rpf rfifo 32 bytes rfifo rmc rmc 6 bytes 32 bytes
peb 20550 pef 20550 operational description semiconductor group 103 01.96 3.6.4 data reception in dma-mode if the rfifo contains 32 bytes, the sacco autonomously requests a block dma- transfer by activating the drqr-line. this forces the dma-controller to continuously perform bus cycles until 32 bytes are transferred from the sacco to the system memory. if the rfifo contains less than 32 bytes (one short frame or the last part of a long frame) the sacco requests a block data transfer depending on the contents of the rfifo according to the following table: after the dma-controller has been set up for the reception of the next frame, the cpu must issue a rmc-command to acknowledge the completion of the receive frame processing. prior to the reception of this rmc, the sacco will not initiate further dma- cycles by activating the drqr-line. the following figure gives an example of a dma controlled reception sequence supposing that a long frame (66 bytes) followed by a short frame (6 byte) are received. figure 53 dma-driven reception example rfifo contents (in bytes) dma request (in bytes) 1, 2, 3 4 4, 5, 6, 7 8 8 - 15 16 16 - 32 32 itd05850 drqr (32) drqr (4) 6 2 32 32 receive 66 bytes receive rd rd rd rd rmc rme byte count (7) rme byte count (67) rmc serial interface sacco cpu interface 68 dma read cycles 6 bytes drqr (32) drqr (8)
peb 20550 pef 20550 operational description semiconductor group 104 01.96 3.7 d-channel arbiter the d-channel arbiter links the sacco-a to the cfi of the epic-1. epic-1 and sacco-a should therefore be initialized before setting up the d-channel arbiter, as demonstrated in chapter 3.8 . in downstream direction, the d-channel arbiter distributes data from the sacco-a to the selected subscribers. in upstream direction, the d-channel arbiter ensures that the sacco-a receives data from only a single correspondent at a time. given proper initialization, the operation of the d-channel arbiter is largely transparent. the user of the elic can thus concentrate on operating the sacco-a as described in chapters 2.2.8 and 3.6 . for the d-channel arbiter to operate as desired, the sacco-a must be set clock mode 3 and inter frame timefill set to all '1's. it is also recommended that the sacco-a not be set into auto-mode when communicating with downstream subscribers. the epic-1s cfi should be configured to follow the line card iom-2 protocol, i.e.: C cfi mode 0 C 2-mbit/s data rate (usually with a double rate clock) C 256 bits per frame and port (8 subscribers per port) C 16-kbit/s d-channels positioned as bits 7,6 of time slots (n 4) - 1 for n = 1 ? 8 3.7.1 sacco - a transmission sending data from the sacco-a to downstream subscribers is handled by the transmit channel master of the d-channel arbiter. the downstream control memory (cm) code for subscribers who may be sent data by the sacco-a must be set to '1010' b for the even time slot and to '1011' b for the odd time slot. the cm-data of the even time slot should be programmed to "11 c/i-code 11". for example, a cm-data entry of '11000011' would set the c/i-code to '0000'. refer to figure 48 . if data is to be sent to a single subscriber (no broadcasting), this subscriber must be selected in the xdc-register. whenever the subscribers d-channel is to be output at the elics cfi, the transmit channel master provides a 2-bit transmit strobe to the sacco-a. every frame, 2 data bits are thus strobed from the sacco-a into the subscribers d-channel, when the sacco-a has been commanded to send data. as the subscribers d-channel recurs every 125 m s, the data is transmitted from the sacco-a to the subscriber at a rate of 16 kbit/s. if the sacco-a has no data to send, it sends its inter frame timefill ('1's) to the subscriber when strobed by the transmit channel master. with the xdc.bct bit set (broadcasting), the bcg-registers are used to select the subscribers to whom the saccos data is to be sent. the saccos output is first copied to an internal buffer. from this buffer, the data is strobed, 2 bits at a time, to all selected subscribers. when the sacco-a has no data to send, its inter frame timefill ('1's) is copied to the buffer and strobed into the d-channels of the selected subscribers.
peb 20550 pef 20550 operational description semiconductor group 105 01.96 3.7.2 sacco - a reception subscribers who are to participate in the d-channel arbitration for the sacco-a must send 'all 1s' as inter frame timefill of their d-channels. flags or idle codes other than 'all 1s' are not permitted as inter frame timefill. for any participating subscriber, the "blocked" code must be programmed into the downstream control memory (cm). also, the subscribers d-channel must be enabled in the dce-register. in the full selection state, the d-channel arbiter overwrites the downstream "blocked" code of enabled subscribers with the "available" code. on the upstream cfi-input lines, the d-channel arbiter monitors all d-channels enabled in the dce-registers. when the d-channel arbiter detects a '0' on any monitored d-channel it assumes this to be the start of an opening flag. it therefore strobes the d-channel data of this subscriber to the sacco-a and starts the suspend counter. for this selected subscriber, the d-channel arbiter continues to overwrite the downstream "blocked" code with the "available" code. however, all other enabled subscribers are now passed the "blocked" code from the downstream cm. if the sacco-a does indeed receive an hdlc-frame - complete or aborted - from the selected subscriber, the suspend counter is reset. while the sacco-a receives data from the selected subscriber, the "blocked" code stops all other subscribers from sending data to the sacco-a. after the sacco-a has received a closing flag or abort sequence for the subscribers frame, the d-channel arbiter stops strobing the subscribers data to the sacco-a and enters the limited selection state. if, after the initial '0', the sacco-a does not receive an hdlc-frame - complete or aborted - from the selected subscriber, it does not reset the suspend counter. eventually, the suspend counter under flows, setting off the ista.ida-interrupt. the subscriber who sent the erroneous '0' can then be identified in the astate-register. any subscriber who frequently sends erroneous '0's should be disabled from the dce, and the cause of the error investigated. after the ista.ida-interrupt, the sacco-a receiver must be reset to resume operation in the full selection state. the limited selection state is identical to the full selection state, except that the subscriber who last sent data to the sacco-a is excluded from the arbitration. this prevents any single subscriber from constantly keeping the sacco-a busy. the "blocked" code of the cm is passed to the excluded subscriber, while the d-channel arbiter sends all other enabled subscribers the "available" code. all enabled subscribers - except the one excluded - are monitored for the starting '0' of an opening flag. how long the exclusion lasts can be programmed in the amo-register. if none of the monitored subscribers has started sending data during this time, the d-channel arbiter re-enters the full selection state.
peb 20550 pef 20550 operational description semiconductor group 106 01.96 3.8 initialization procedure for proper initialization of the elic the following procedure is recommended: 3.8.1 hardware reset a reset pulse can be applied at the resex-pin for at least 4 pdc-clock cycles. the reset pulse sets all registers to their reset values (cf. chapter 4.1 ). note that in this state dcl and fsc do not deliver any clock signals. 3.8.2 epic ? -1 initialization as the epic-1 forms the core of the elic, it should usually be programmed first. 3.8.2.1 register initialization the pcm- and cfi-configuration registers (pmod, pbnr, ? , cmd1, cmd2, ? ) should be programmed to the values required for the application. the correct setting of the pcm- and cfi-registers is important in order to obtain a reference clock (rcl) which is consistent with the externally applied clock signals. the state of the operation mode (omdr:oms1..0 bits) does not matter for this programming step. pmod = pcm-mode, timing characteristics, etc. pbnr = number of bits per pcm-frame pofd = pcm-offset downstream pofu = pcm-offset upstream pcsr = pcm-timing cmd1 = cfi-mode, timing characteristics, etc. cmd2 = cfi-timing cbnr = number of bits per cfi-frame ctar = cfi-offset (time slots) cbsr = cfi-offset (bits) cscr = cfi-sub channel positions 3.8.2.2 control memory reset since the hardware reset does not affect the epic-1 memories (control and data memories), it is mandatory to perform a "software reset" of the cm. the cm-code '0000' (unassigned channel) should be written to each location of the cm. the data written to the cm-data field is then dont care, e.g. ff h . omdr:oms1..0 must be to '00' b for this procedure (reset value). madr = ff h macr = 70 h wait for epic.star:mac = 0
peb 20550 pef 20550 operational description semiconductor group 107 01.96 the resetting of the complete cm takes 256 rcl-clock cycles. during this time, the epic.star:mac-bit is set to logical 1. 3.8.2.3 initialization of pre-processed channels after the cm-reset, all cfi time slots are unassigned. if the cfi is used as a plain pcm- interface, i.e. containing only switched channels (b-channels), the initialization steps below are not required. the initialization of pre-processed channels applies only to iom- or sld-applications. an iom- or sld-"channel" consists of four consecutive time slots. the first two time slots, the b-channels need not be initialized since they are already set to unassigned channels by the cm-reset command. later, in the application phase of the software, the b-channels can be dynamically switched according to system requirements. the last two time slots of such an iom- or sld-channel, the pre-processed channels must be initialized for the desired functionality. there are five options that can be selected: table 16 pre-processed channel options at the cfi also refer to figure 49 . even cfi time slot odd cfi time slot main application monitor/feature control channel monitor/feature control channel monitor/feature control channel monitor/feature control channel monitor/feature control channel 4-bit c/i-channel, d-channel handled by sacco-a and d-ch. arbiter 4-bit c/i-channel, d-channel not switched (decentral d-ch. handling) 4-bit c/i-channel, d-channel switched (central d-ch. handling) 6-bit sig-channel 8-bit sig/channel iom-1 or iom-2 digital subscriber iom-1 or iom-2 digital subscriber iom-1 or iom-2 digital subscriber iom-2, analog subscriber sld, analog subscriber
peb 20550 pef 20550 operational description semiconductor group 108 01.96 example in cfi-mode 0 all four cfi-ports shall be initialized as iom-2 ports with a 4-bit c/i-field and d-channel handling by the sacco-a. cfi time slots 0, 1, 4, 5, 8, 9 ? 28, 29 of each port are b-channels and need not to be initialized. cfi time slots 2, 3, 6, 7, 10, 11, ?, 30, 31 of each port are pre-processed channels and need to be initialized: cfi-port 0, time slot 2 (even), downstream madr = ff h ; the c/i-value '1111' will be transmitted upon cfi-activation maar = 08 h ; addresses ts 2 down macr = 7a h ; cm-code '1010' wait for star:mac = 0 cfi-port 0, time slot 3 (odd), downstream madr = ff h ; dont care maar = 09 h ; addresses ts 3 down macr = 7b h ; cm-code '1011' wait for star:mac = 0 cfi-port 0, time slot 2 (even), upstream madr = ff h ; the c/i-value '1111' is expected upon cfi-activation maar = 88 h ; address ts 2 up macr = 78 h ; cm-code '1000' wait for star:mac = 0 cfi-port 0, time slot 3 (odd), upstream madr = ff h ; dont care maar = 89 h ; address ts 3 up macr = 70 h ; cm-code '0000' wait for star:mac = 0 repeat the above programming steps for the remaining cfi-ports and time slots. this procedure can be speeded up by selecting the cm-initialization mode (omdr:oms1..0 = 10). if this selection is made, the access time to a single memory location is reduced to 2.5 rcl-cycles. the complete initialization time for 32 iom-2 channels is then reduced to 128 0.61 m s = 78 m s
peb 20550 pef 20550 operational description semiconductor group 109 01.96 3.8.2.4 initialization of the upstream data memory (dm) tristate field for each pcm time slot the tristate field defines whether the contents of the dm-data field are to be transmitted (low impedance), or whether the pcm time slot shall be set to high impedance. the contents of the tristate field is not modified by a hardware reset. in order to have all pcm time slots set to high impedance upon the activation of the pcm- interface, each location of the tristate field must be loaded with the value '0000'. for this purpose, the "tristate reset" command can be used: omdr = c0 h ; oms1..0 = 11, normal mode madr = 0 0 h ; code field value '0000' b macr = 68 h ; moc-code to initialize all tristate locations (1101 b ) wait for star:mac = 0 the initialization of the complete tristate field takes 1035 rcl-cycles. note: it is also possible to program the value '1111' to the tristate field in order to have all time slots switched to low impedance upon the activation of the pcm-interface. note: while omdr:psb = 0, all pcm-output drivers are set to high impedance, regardless of the values written to the tristate field. 3.8.3 sacco-initialization to initialize the sacco, the cpu has to write a minimum set of registers. depending on the operating mode and on the features required, an optional set of register must also be initialized. as the first register to be initialized, the mode-register defines operating and address mode. if data reception shall be performed, the receiver must be activated by setting the rac-bit. depending on the mode selected, the following registers must also be defined:
peb 20550 pef 20550 operational description semiconductor group 110 01.96 table 17 mode dependent register set-up the second minimum register to be initialized is the ccr2. in combination with the ccr1, the ccr2 defines the configuration of the serial port. it also allows enabling the rfs-interrupt. if bus configuration is selected, the external serial bus must be connected to the c d- pin for collision detection. in point-to-point configuration, the c d-pin must be tied to ground if no "clear to send" function is provided via a modem. depending on the features desired, the following registers may also require initializing before powering up the sacco: table 18 feature dependent register set-up the ccr1 is the final minimum register that has to be programmed to initialize the sacco. in addition to defining the serial port configuration, the ccr1 sets the clock mode and allows the cpu to power-up or power-down the sacco. in power-down mode all internal clocks are disabled, and no interrupts are forwarded to the cpu. this state can be used as standby mode for reduced power consumption. 1 byte address 2 byte address transparent mode 1 rah1 rah2 non-auto mode rah1 = 00 h rah2 = 00 h ral1 ral2 rah1 rah2 ral1 ral2 auto-mode xad1 xad2 rah1 = 00 h rah2 ral1 ral2 xad1 xad2 rah1 rah2 ral1 ral2 feature register(s) clock mode 2 tsar, tsac, xccr, rccr masking selected interrupts mask dma controlled data transfer xbch check on receive length rlcr
peb 20550 pef 20550 operational description semiconductor group 111 01.96 switching between power-up or power-down mode has no effect on the contents of the register, i.e. the internal state remains stored. after power-up of the sacco, the cpu should bring the transmitter and receiver to a defined state by issuing a xres (transmitter reset) and rhr (receiver reset) command via the cmdr-register. the sacco will then be ready to transmit and receive data. the cpu controls the data transfer phase mainly by commands to the sacco via the cmdr-register, and by interrupt indications from the sacco to the cpu. status information that does not trigger an interrupt is constantly available in the star-register. 3.8.4 initialization of d-channel arbiter the d-channel arbiter links the sacco-a to the cfi of the epic-1 part of the elic. thus the epic-1 and sacco-parts of the elic should be initialized before initializing the d-channel arbiter. for subscribers wishing to communicate with the sacco-a, the correct pre-processed channel code must have been programmed in the epic-1s control memory. in downstream direction, this code is cmc = 1010 for the even time slot and cmc = 1011 for the odd time slot. in upstream direction, any pre-processed channel code is also valid for arbiter operation. this is shown in figure 48 of chapter 3.5.3 . for an example refer to chapter 3.8.2.3 . if the mr-bit is used to block downstream subscribers, the blocking code mr = '0' b can be written as madr = '11xxxx01' b when initializing the even downstream time slot. the 'x' stand for the c/i-code. this also is shown in figure 48 . if the c/i-code is used to block downstream subscribers, such subscribers must be activated with the c/i-code '1100' b , not '1000' b . the sacco-a must be initialized to clock mode 3 to communicate with downstream subscribers. in clock mode 3, the sacco-a receives its input and transmit its output via the d-channel arbiter. if the ccr2.t de-bit is set, the sacco-as output is transmitted at the t da-pin in addition to being transmitted via the d-channel arbiter. once epic-1 and sacco-a have been correctly initialized, writing the subscribers address into the xdc-register allows the sacco-a to send the subscriber data. by setting the xdc.bct-bit and programming the bcg-registers, the sacco-a can transmit its data to several subscribers. to strobe upstream data from the cfi-interface to the sacco-as receiver, the amo- register must be programmed for the desired functionality. subscribers who are to be allowed to send data must be enabled via the dce-registers. if a subscriber tries to send data during the initialization of the upstream d-channel arbiter, a ista.ida-interrupt may occur. this interrupt can be cleared by resetting the sacco-a receiver.
peb 20550 pef 20550 operational description semiconductor group 112 01.96 note: the epic-1 and sacco-a must be initialized correctly before the d-channel arbiter can operate properly. particular care must be given to programming the epic-1s control memory (cm) with the required cm-codes (cmcs). note: the upstream and downstream d-channel arbiter initializations are independent of each other. 3.8.5 activation of the pcm- and cfi-interfaces with epic-1, sacco-a and d-channel arbiter all configured to the system requirements, the pcm- and cfi-interface can be switched to the operational mode. the omdr:oms1..0 bits must be set (if this has not already be done) to the normal operation mode (oms1..0 = 11). when doing this, the pcm-framing interrupt (ista:pfi) will be enabled. if the applied clock and framing signals are in accordance with the values programmed to the pcm-registers, the pfi-interrupt will be generated (if not masked). when reading the status register, the star:pss-bit will be set to logical 1. to enable the pcm-output drivers set omdr:psb = 1. the cfi-interface is activated by programming omdr:csb = 1. this enables the output clock and framing signals (dcl and fsc), if these have been programmed as outputs. it also enables the cfi-output drivers. the output driver type can be selected between "open drain" and "tristate" with the omdr:cos-bit. example: activation of the epic-1 part of the elic for a typical iom-2 application: omdr = ee h ; normal operation mode (oms1..0 = 11) pcm-interface active (psb = 1) pcm-test loop disabled (ptl = 0) cfi-output drivers: open drain (cos = 1) monitor handshake protocol selected (mfps = 1) cfi active (csb = 1) access to epic-1 registers via address pins a4..a0 (rbs = 0)
peb 20550 pef 20550 operational description semiconductor group 113 01.96 3.8.6 initialization example in this sample initialization the elic is set up to handle a digital iom-2 subscriber. the interfaces of the elic are shown below: figure 54 elic ? interfaces for initialization example the subscriber uses the elics cfi-port 0, channel 0 (time slots 0 - 3). the subscribers upstream b 1 -channel is to be switched to pcm-port 0, time slot 5. the subscribers upstream b 2 -channel is to be looped back to the subscriber on the downstream b 1 -channel. the subscribers downstream b 2 -channel is to be switched from pcm- port 0, time slot 1. the subscribers hdlc-data is exchanged via the d-channel with the sacco-a. monitor and c/i-channels are to be handled via the elic. the sacco-b communicates via a dedicated signaling highway with a non-pbc group controller. a 4-mhz clock is input as pdc and hdcb. port 1 of the elic is to be used as active low output. thus the port should be linked to pull-up resistors. write pcon1 = ff h write port1 = ff h its05808 epic r d channel controlling arbiter sacco ch-a sacco ch-b elic r p d channel highway b channels highway signaling pcm interface iom -2 r
peb 20550 pef 20550 operational description semiconductor group 114 01.96 3.8.6.1 epic ? -1 initialization example configure pcm-side of elic: write pmod = 44 h pcm-mode 1, single clock rate, pfs evaluated with falling edge of pdc, r d0 = logical input port 0 write pbnr = ff h 512 bits per pcm-frame write pofd = f0 h the internal pfs marks downstream bit 6, ts 0 (second bit of frame) write pofu = 18 h the internal pfs marks upstream bit 6, ts 0 (second bit of frame) write pcsr = 45 h no clock shift; pcm-data sampled with falling, transmitted with rising pdc configure cfi-side of elic: write cmd1 = 20 h pdc and pfs used as clock and framing source for the cfi; crcl = pdc; cfi-mode 0 write cmd2 = d0 h fsc shaped for iom-2 interface; dcl = 2 data rate; cfi-data received with falling, transmitted with rising crcl write cbnr = ff h 256 bits per cfi-frame write ctar = 02 h pfs is to mark cfi time slot 0 write cbsr = 20 h pfs is to mark bit 7 of cfi time slot 0; no shift of cfi-upstream data relative to cfi-downstream data write cscr = 00 h 2-bit channels located in position 7, 6 on all cfi-ports reset epic-1 control memory (cm) to ff h : write madr = ff h write macr = 70 h initialize epic-1 cm: write omdr = 80 h set epic-1 from cm-reset mode into cm-initialization mode the subscribers upstream b 1 -channel is switched to pcm-port 0, time slot 5 write madr = 89 h connection to pcm-port 0, time slot 5 write maar = 80 h from upstream cfi-port 0, time slot 0 write macr = 71 h write cm-data adressed by maar with content of madr; write cm-code addressed by maar with '0001' b (code for a simple 64-kbit/s connection) read star wait for star:mac = 0 the subscribers upstream b 2 -channel is internally looped via pcm-port 1, time slot 1 write madr = 85 h loop to pcm-port 1, time slot 1 write maar = 81 h from upstream cfi-port 0, time slot 1 write macr = 71 h write cm-data addressed by maar with content of madr; write cm-code addressed by maar with '0001' b (code for a simple 64 kbit/s connection) read star wait for star:mac = 0
peb 20550 pef 20550 operational description semiconductor group 115 01.96 the subscribers upstream time slots 2 and 3 are initialized as monitor and c/i-channels with decentral d-channel handling write madr = ff h received c/i-code to be compared to '1111' b write maar = 88 h from upstream cfi-port 0, time slot 2 write macr = 78 h write cm-data addressed by maar with content of madr; write cm-code addressed by maar with '1000' b (even address code for decentral monitor and c/i-channels) read star wait for star:mac = 0 write maar = 89 h from upstream cfi-port 0, time slot 3 write macr = 70 h write cm-code addressed by maar with '0000' b (odd address code for decentral monitor and c/i-channels) read star wait for star:mac = 0 the subscribers downstream b 1 -channel is internally looped via pcm-port 1, time slot 1 write madr = 85 h internal loop from pcm-port 1, time slot 1 write maar = 00 h to downstream cfi-port 0, time slot 0 write macr = 71 h write cm-data addressed by maar with content of madr; write cm-code addressed by maar with '0001' b (code for a simple 64-kbit/s connection) read star wait for star:mac = 0 the subscribers downstream b 2 -channel is switched from pcm-port 0, time slot 1 write madr = 01 h connection from pcm-port 0, time slot 1 write maar = 01 h to downstream cfi-port 0, time slot 1 write macr = 71 h write cm-data addressed by maar with content of madr; write cm-code addressed by maar with '0001' b (code for a simple 64-kbit/s connection) read star wait for star:mac = 0 the subscribers downstream time slots 2 and 3 are initialized as monitor and c/ i-channels with d-channel handling by the sacco-a write madr = ff h c/i-code to be transmitted = '1111' b (madr = f3 h d-channel blocking code '1100' b to be transmitted.) write maar = 08 h to downstream cfi-port 0, time slot 2 write macr = 7a h write cm-data addressed by maar with content of madr; write cm-code addressed by maar with '1010' b (even address code for monitor and c/i-channels with d-channel handling by sacco-a) read star wait for star:mac = 0 write maar = 09 h from upstream cfi-port 0, time slot 3 write macr = 7b h write cm-code addressed by maar with '1011' b (odd address code for monitor and c/i-channels with d-channel handling by sacco-a) read star wait for star:mac = 0
peb 20550 pef 20550 operational description semiconductor group 116 01.96 set epic-1 to normal mode write omdr = c0 h set epic-1 to cm-normal mode; interrupt line will go active read ista = 20 h epic-1 interrupt read ista_e = 08 h pfi-interrupt: pcm-synchronisity status has changed read star_e = 25 h elic is synchronized to pcm-interface; mfifo ready reset tristate field of data memory (dm) write madr = 00 h all bits of time slot set to high impedance write macr = 68 h write madr to all locations of pcm-tristate field read star wait for star:mac = 0 3.8.6.2 sacco - a initialization example configure the sacco-a for communication with downstream subscribers write mode = a8 h set sacco-b to transparent mode 1; switch receiver active write rah1 = 00 h response sapi1: signaling data write rah2 = 40 h response sapi 2: packet-switched data (write ccr2 = 00 h ) reset value: t da pin disabled; standard data sampling; rfs-interrupt disabled write ccr1 = 87 h power-up sacco-a in point to point configuration and clock mode 3 with double rate clock; inter frame timefill = all '1's reset the sacco-as fifos write cmdr = c1 h reset cpu accessible and cpu inaccessible part of rfifo, and reset xfifo; the interrupt line will go active read ista = 02 h interrupt of sacco-a read ista_a = 10 h transmit pool ready 3.8.6.3 d-channel arbiter initialization example enable d-channel transmission to cfi-port 0, channel 0 (write xdc = 00 h ) reset value: broadcasting disabled; transmit to channel 0 of port 0 enable d-channel reception on cfi-port 0, channel 0 write amo = f9 h start with maximum selection delay; suspend counter active; control of d-channel to take place via c/i-bit; control channel master enabled write dce0 = 01 h enable cfi-port 0, channel 0 for data reception
peb 20550 pef 20550 operational description semiconductor group 117 01.96 3.8.6.4 pcm- and cfi-interface activation example write omdr = ee h see chapter 3.8.5 . enable upstream pcm-port 0, time slot 5 write madr = 0f h set all bits of time slot to low impedance write maar = 89 h pcm-port 0, time slot 5 write macr = 60 h write only single tristate control position read star wait for star:mac = 0 3.8.6.5 sacco - b initialization example configure the sacco-b as secondary station for an upstream (non-pbc) group controller write mode = 48 h set sacco-b to 8-bit non-auto mode; switch receiver active write rah1 = 00 h the high-byte comparison registers should be set to 00 h when using non-auto mode write rah2 = 00 h write ral1 = 89 h 8-bit address of sacco-b write ral2 = ff h 8-bit group address (broadcast by group controller) write ccr2 = 08 h txdb pin enabled; standard data sampling; rfs-interrupt disabled write ccr1 = 98 h power-up sacco-b in point-to-point configuration and clock mode 0 with single rate clock; inter frame timefill = flags; txdb is push-pull output reset the sacco-bs fifos write cmdr = c1 h reset cpu accessible and cpu inaccessible part of rfifo, and reset xfifo; the interrupt line will go active read ista = 08 h interrupt of sacco-b read ista_b = 10 h transmit pool ready
peb 20550 pef 20550 detailed register description semiconductor group 118 01.96 4 detailed register description 4.1 register address arrangement interrupt top level parallel ports watchdog timer elic ? mode register group reg name chip select access address mux address demux reset value comment refer to page interrupt ista cse rd 82 h 41 h 00 h interrupt status reg. 124 top level mask cse wr 82 h 41 h 00 h mask reg. 125 group reg name chip select access address mux address demux reset value comment refer to page port0 port0 cse rd 84 h 42 h xx h port 0 data 126 port1 port1 cse rd/wr 86 h 43 h fx h port 1 data 126 pcon1 cse wr 88 h 44 h f0 h port 1 configuration reg. 127 group reg name chip select access address mux address demux reset value comment refer to page watchdog timer wtc cse rd/wr 80 h 40 h 1f h watchdog timer control reg. 127 group reg name chip select access address mux address demux reset value comment refer to page elic mode emod cse rd/wr 7e h 3f h xf h elic mode version number 128
peb 20550 pef 20550 detailed register description semiconductor group 119 01.96 epic ? -1 group reg name chip select access address mux address demux reset value comment refer to page epic-1- pcm interface pmod cse rd/wr 20 h 10 h 00 h pcm-mode reg. 130 pbnr cse rd/wr 22 h 11 h ff h pcm-bit number reg. 132 pofd cse rd/wr 24 h 12 h 00 h pcm-offset downstream reg. 132 pofu cse rd/wr 26 h 13 h 00 h pcm-offset upstream reg. 133 pcsr cse rd/wr 28 h 14 h 00 h pcm-clock shift reg. 134 picm cse rd 2a h 15 h xx h pcm-input comparison mismatch reg. 135 epic-1 cfi cmd1 cse rd/wr 2c h 16 h 00 h cfi-mode reg. 1 136 cmd2 cse rd/wr 2e h 17 h 00 h cfi-mode reg. 2 138 cbnr cse rd/wr 30 h 18 h ff h cfi-bit number reg. 141 ctar cse rd/wr 32 h 19 h 00 h cfi time slot adjustment reg. 141 cbsr cse rd/wr 34 h 1a h 00 h cfi-bit shift reg. 142 cscr cse rd/wr 36 h 1b h 00 h cfi-subchannel reg. 143 epic-1 memory access macr cse rd/wr 00 h 00 h xx h memory access control reg. 144 maar cse rd/wr 02 h 01 h xx h memory access address reg. 147 madr cse rd/wr 04 h 02 h xx h memory access data reg. 148
peb 20550 pef 20550 detailed register description semiconductor group 120 01.96 epic-1 synchro- nous transfer stda cse rd/wr 06 h 03 h xx h synchron transfer data reg. a 148 stdb cse rd/wr 08 h 04 h xx h synchron transfer data reg. b 149 sara cse rd/wr 0a h 05 h xx h synchron transfer receive address reg. a 149 sarb cse rd/wr 0c h 06 h xx h synchron transfer receive address reg. b 150 saxa cse rd/wr 0e h 07 h xx h synchron transfer transmit address reg. a 150 saxb cse rd/wr 10 h 08 h xx h synchron transfer transmit address reg. b 151 stcr cse rd/wr 12 h 09 h 00xxxx xx synchron transfer control reg. 151 epic-1 monitor/ feature control mfair cse rd 14 h 0a h 0xxxxx xx mf-channel active indication reg. 152 mfsar cse wr 14 h 0a h 00 h mf-channel subscriber address reg. 153 mffifo cse rd/wr 16 h 0b h xx h mf-channel fifo 153 epic-1 status/ control cififo cse rd 18 h 0c h 00 h signaling channel fifo 154 timr cse wr 18 h 0c h 00 h timer reg. 154 star_e cse rd 1a h 0d h 05 h status register epic 155 cmdr_e cse wr 1a h 0d h 00 h command reg. epic 156 ista_e cse rd 1c h 0e h 00 h interrupt status epic-1 158 mask_e cse wr 1c h 0e h 00 h mask register epic-1 159 omdr cse rd/wr 1e h 3e h 0f h 00 h operation mode reg. 160 vnsr cse rd/wr 3a h 1d h 01 h version number status register 162 epic ? -1 (contd) group reg name chip select access address mux address demux reset value comment refer to page
peb 20550 pef 20550 detailed register description semiconductor group 121 01.96 sacco group reg name chip select access address mux address demux reset value comment refer to page sacco- fifo rfifo css rd 00 h 80 h : : 3e h be h 00 h 40 h : : 1f h 5f h xx h : xx h receive fifo 163 xfifo css wr 00 h 80 h : : 3e h be h 00 h 40 h : : 1f h 5f h xx h : xx h transmit fifo 164 sacco- status/ control ista_a/b css rd 40 h c0 h 20 h 60 h 00 h interrupt status reg. channel a/b 165 mask_a/b css wr 40 h c0 h 20 h 60 h 00 h mask reg. channel a/b 166 exir_a/b css rd 48 h c8 h 24 h 64 h 00 h extended interrupt channel a/b 166 cmdr css wr 42 h c2 h 21 h 61 h 00 h command reg. 168 mode css rd/wr 44 h c4 h 22 h 62 h 00 h mode reg. 170 ccr1 css rd/wr 5e h de h 2f h 6f h 00 h channel configuration reg. 1 171 ccr2 css rd/wr 58 h d8 h 2c h 6c h 00 h channel configuration reg. 2 173 rlcr css wr 5c h dc h 2e h 6e h xx h receive frame length check 174 star css rd 42 h c2 h 21 h 61 h 48 h status reg. 175 rsta css rd 4e h ce h 27 h 67 h xx h receive status reg. 176 rhcr css wr 52 h d2 h 29 h 69 h xx h receive hdlc- control byte 178 sacco- transmit addr. xad1 css wr 48 h c8 h 24 h 64 h xx h transmit address 1 178 xad2 css wr 4a h ca h 25 h 65 h xx h transmit address 2 179 sacco- address recognition ral1 css rd/wr 50 h d0 h 28 h 68 h xx h receive address low 1 179 ral2 css wr 52 h d2 h 29 h 69 h xx h receive address low 2 180 rah1 css wr 4c h cc h 26 h 66 h xx h receive address high 1 180 rah2 css wr 4e h ce h 27 h 67 h xx h receive address high 2 181
peb 20550 pef 20550 detailed register description semiconductor group 122 01.96 sacco- dma- support rbcl css rd 4a h ca h 25 h 65 h 00 h receive byte count low 181 rbch css rd 5a h da h 2d h 6d h 000xxx xx receive byte count high 182 xbcl css wr 54 h d4 h 2a h 6a h xx h transmit byte count low 182 xbch css wr 5a h da h 2d h 6d h 000xxx xx transmit byte count high 183 sacco- time slot assignment tsax css wr 60 h e0 h 30 h 70 h xx h time slot assign- ment transmit 183 tsar css wr 60 h e0 h 30 h 70 h xx h time slot assignment receiver 184 xccr css wr 62 h e2 h 31 h 71 h 00 h transmit channel capacity 184 rccr css wr 66 h e6 h 33 h 73 h 00 h receive channel capacity 185 sacco version vstr css wr 5c h 2e h 80 h version status register 185 sacco (contd) group reg name chip select access address mux address demux reset value comment refer to page
peb 20550 pef 20550 detailed register description semiconductor group 123 01.96 arbiter group reg name chip select access addres s mux addres s demux reset value comment refer to page arbiter control amo cse rd/wr c0 h 60 h 00 h arbiter mode register 186 astate cse rd c2 h 61 h xx h arbiter state register 187 scv cse rd/wr c4 h 62 h 00 h suspend counter value register 187 d-channel enabling upstream dce0 cse rd/wr c6 h 63 h 00 h d-channel enable reg. 0 188 dce1 cse rd/wr c84 h 64 h 00 h d-channel enable reg. 1 188 dce2 cse rd/wr ca h 65 h 00 h d-channel enable reg. 2 188 dce3 cse rd/wr cc h 66 h 00 h d-channel enable reg. 3 189 d-channel selecting downstream xdc cse rd/wr ce h 66 h 00 h transmit d-channel address register 189 bcg0 cse rd/wr d0 h 68 h 00 h broadcast group reg. 0 190 bcg1 cse rd/wr d2 h 69 h 00 h broadcast group reg. 1 190 bcg2 cse rd/wr d4 h 6a h 00 h broadcast group reg. 2 190 bcg3 cse rd/wr d6 h 6b h 00 h broadcast group reg. 3 190
peb 20550 pef 20550 detailed register description semiconductor group 124 01.96 4.2 interrupt top level 4.2.1 interrupt status register (ista) access in demultiplexed m p-interface mode: read address: 41 h access in multiplexed m p-interface mode: read address: 82 h reset value: 00 h iwd interrupt watchdog timer. the watchdog timer is expired and an external reset (resin) was generated. the software failed to program the bits wtc1 and wtc2 in the correct sequence. ida interrupt d-channel arbiter. the suspend counter expired while the arbiter was in the state "expect frame". the affected d-channel can be determined by reading register astate. iep interrupt epic-1, detailed information is indicated in register ista_e. exb extended interrupt sacco-b, detailed information is indicated in register exir_b. icb interrupt sacco-b, detailed information is indicated in register ista_b. exa extended interrupt sacco-a, detailed information is indicated in register exir_a. ica interrupt sacco-a, detailed information is indicated in register ista_a. iwd and ida are reset when reading ista. the other bits are reset when reading the corresponding local ista- or exir-register. bit 7 bit 0 iwd ida iep exb icb exa ica 0
peb 20550 pef 20550 detailed register description semiconductor group 125 01.96 4.2.2 mask register (mask) access in demultiplexed m p-interface mode: write address: 41 h access in multiplexed m p-interface mode: write address: 82 h reset value: 00 h (all interrupts enabled) ida enables(0)/disables(1) the d-channel arbiter interrupt iep enables(0)/disables(1) the epic-1 interrupts exb enables(0)/disables(1) the sacco-b extended interrupts icb enables(0)/disables(1) the sacco-b interrupts exa enables(0)/disables(1) the sacco-a extended interrupts ica enables(0)/disables(1) the sacco-a interrupts each interrupt source/group can be selectively masked by setting the respective bit in the mask-register (bit position corresponding to the ista-register). a masked ida- interrupt is not indicated when reading ista. instead it remains internally stored and will be indicated after the respective mask-bit is reset. the watchdog timer interrupts is not maskable. even with a set mask-bit epic-1 and sacco-interrupts are indicated but no interrupt signal is generated. when writing the mask-register while an interrupt is indicated, int is temporarily set into the inactive state. bit 7 bit 0 0 ida iep exb icb exa ica 0
peb 20550 pef 20550 detailed register description semiconductor group 126 01.96 4.3 parallel ports 4.3.1 port0 data register (port0) demultiplexed address mode: read address: 42 h access in multiplexed m p-interface mode: read address: 84 h reset value: xx h p0d7..0 port0 data 70. data sampled on the related pin with the falling rd-edge. note: port 0 is only available when the multiplexed siemens/intel type bus mode is used (ale is switching). 4.3.2 port1 data register (port1) access in demultiplexed m p-interface mode: read/write address: 43 h access in multiplexed m p-interface mode: read/write address: 86 h reset value: fx h p1d3..0 port1 data 30. write operation: data is output on the related pin, assuming the pin is configured in pcon1 as an output. the data is activated with the falling wr edge. it is stable until another write access to port1 is executed or pcon1 is reprogrammed. all outputs have push-pull characteristic. read operation: data is sampled on the related pin with the falling rd -edge, assuming the pin is configured in pcon1 as an input. note: in order to avoid an undefined behavior of pins p1(3:0) when reprogramming pcon1-values from input to output, it is recommended to use external pull-up/ pull-down devices at pins p1(3:0). bit 7 bit 0 p0d7 p0d6 p0d5 p0d4 p0d3 p0d2 p0d1 p0d0 bit 7 bit 0 1 1 1 1 p1d3 p1d2 p1d1 p1d0
peb 20550 pef 20550 detailed register description semiconductor group 127 01.96 4.3.3 port1 configuration register (pcon1) access in demultiplexed m p-interface mode: read/write address: 44 h access in multiplexed m p-interface mode: read address: 88 h reset value: f0 h p1c3..0 port1 configuration 30. 0port1, pin # is configured as input. 1port1, pin # is configured as output with push-pull characteristic. 4.4 watchdog timer 4.4.1 watchdog control register (wtc) access in demultiplexed m p-interface mode: read/write address: 40 h access in multiplexed m p-interface mode: read address: 80 h reset value: 1f h swt start watchdog timer. when set, the watchdog timer is started. the only way to disable it, is a elic- reset (power-up or resex). wtc1..2 watchdog timer control. once the watchdog timer has been started wtc1, wtc2 have to be written once every 1024 pfs-cycles in the following sequence in order to prevent the watchdog expiring. wtc1 wtc2 1) 1 0 2) 0 1 the minimum required interval between the two write accesses is 2 pdc- periods. bit 7 bit 0 1 1 1 1 p1c3 p1c2 p1c1 p1c0 bit 7 bit 0 wtc1 wtc2 swt 1 1 1 1 1
peb 20550 pef 20550 detailed register description semiconductor group 128 01.96 4.5 elic ? mode register / version number register (emod) access in demultiplexed m p-interface mode: read/write address: 3f h access in multiplexed m p-interface mode: read/write address: 7e h reset value: xf h vn(3:0) elic-version number according to the following table: ecmd2 elic cfi-mode bit 2. if set to '0', the cfi-mode 0 with a 2.048-mbit/s data rate can be used with a 2.048-mhz pdc-input clock. this mode requires further restrictions of the current elic-specification: 1) epic-1 pmod:pcr must be set to '1'. note: although the pcm clock pdc is set to double clock rate by this bit, the data rate must always be equal to the clock rate. 2) epic-1 cmd2:coc must be programmed to '0', i.e. it is not possible to output a dcl-clock with a frequency of twice the cfi-data rate. 3) epic-1 cmd1:css must be programmed to '0', i.e. it is not possible to select dcl as clock and fsc as framing signal source for the configurable interface. 4) the timing of the pcm-interface is expanded: bit 7 bit 0 vn3 vn2 vn1 vn0 1 1 ecmd2 dmxad vn (3:0) elic-version 1111 v 1.1 1110 v 1.2 1101 v 1.3 parameter symbol limit values unit test condition min. max. clock period t cp 480 Cns emod:ecmd2 = '0' clock period low t cpl 200 C ns clock period high t cph 200 C ns
peb 20550 pef 20550 detailed register description semiconductor group 129 01.96 5) pcsr:dre has to be set to 1. pcsr:ure has to be set to 1. when provided with a 2 mhz pdc, the elic internally generates a 4mhz clock. since the clock shift capabilities (provided by register bits pcsr:drcs and pcsr:adsr0) apply to the internal 4 mhz clock, the frame can thus be shifted with a resolution of a half bit. figure 55 timing relation between internal and external clock 6) pmod:psm has to be set to 1. the frame signal pfs must always be sampled with the rising edge of pdc. the set-up and hold times of pfs are still valid respected to external pdc. dmxad demultiplexed address. if set to '0' the de multiplexed addresses are also valid in the multiplexed m p-interface mode. its06897 epic r core x2 r elic 4 mhz pdc = 2 mhz rxd#, txd# (2 mbit/s) 2 mhz pdc internal 4 mhz clock
peb 20550 pef 20550 detailed register description semiconductor group 130 01.96 4.6 epic ? -1 4.6.1 pcm-mode register (pmod) access in demultiplexed m p-interface mode: read/write address: 10 h access in multiplexed m p-interface mode: read/write address: 20 h reset value: 00 h note: if emod:ecmd2 is set to 0 some restrictions apply to the setting of register pmod (see chapter 4.5 ). pmd1..0 pcm-mode. defines the actual number of pcm-ports, the data rate range and the data rate stepping. the actual selection of physical pins is described below (ais1/0). pcr pcm-clock rate. 0 single clock rate, data rate is identical with the clock frequency supplied on pin pdc. 1 double clock rate, data rate is half the clock frequency supplied on pin pdc. note: only single clock rate is allowed in pcm-mode 2! psm pcm synchronization mode. a rising edge on pfs synchronizes the pcm-frame. pfs is not evaluated directly but is sampled with pdc. 0 the external pfs is evaluated with the falling edge of pdc. the internal pfs (internal frame start) occurs with the next rising edge of pdc. 1 the external pfs is evaluated with the rising edge of pdc. the internal pfs (internal frame start) occurs with this rising edge of pdc. bit 7 bit 0 pmd1 pmd0 pcr psm ais1 ais0 aic1 aic0 pmd1..0 pcm- mode port count data rate [kbbt/s] data rate stepping [kbit/s] min. max. 00 01 10 11 0 1 2 3 4 2 1 2 256 512 1024 512 2048 4096 8192 4096 256 512 1024 512
peb 20550 pef 20550 detailed register description semiconductor group 131 01.96 ais1..0 alternative input selection. these bits determine the relationship between the physical pins and the logical port numbers. the logical port numbers are used when programming the switching functions. note: in pcm-mode 0 these bits may not be set! aic1 alternate input comparison 1. 0input comparison of port 2 and 3 is disabled 1the inputs of port 2 and 3 are compared aic0 alternate input comparison 0. 0input comparison of port 0 and 1 is disabled 1the inputs of port 0 and 1 are compared note: the comparison function is operational in all pcm-modes; however, a redundant pcm-line which can be switched over to by means of the pmod: ais-bits is only available in pcm-modes 1, 2 and 3. pcm port 0 port 1 port 2 port 3 mode rxd0 txd0 tsc0 rxd1 txd1 tsc1 rxd2 txd2 tsc2 rxd3 txd3 tsc3 0 in0 out0 val0 in1 out1 val1 in2 out2 val2 in3 out3 val3 1in0 (ais0=1) out0 val0 in0 (ais0=0) tristate ais0 in1 (ais1=1) out1 val1 in1 (ais1=0) tristate ais1 2not active out val not active tristate ais0 in (ais1=1) undef. undef. in (ais1=0) tristate ais1 3in0 (ais0=1) out0 val0 in0 (ais0=0) out0 val0 in1 (ais1=1) out1 val1 in1 (ais1=0) out1 val1
peb 20550 pef 20550 detailed register description semiconductor group 132 01.96 4.6.2 bit number per pcm-frame (pbnr) access in demultiplexed m p-interface mode: read/write address: 11 h access in multiplexed m p-interface mode: read/write address: 22 h reset value: ff h bnf7..0 bit number per pcm frame. pcm-mode 0: bnf7..0 = number of bits C 1 pcm-mode 1: bnf7..0 = (number of bits C 2) / 2 pcm-mode 2: bnf7..0 = (number of bits C 4) / 4 pcm-mode 3: bnf7..0 = (number of bits C 2) / 2 the value programmed in pbnr is also used to check the pfs-period. 4.6.3 pcm-offset downstream register (pofd) access in demultiplexed m p-interface mode: read/write address: 12 h access in multiplexed m p-interface mode: read/write address: 24 h reset value: 00 h ofd9..2 offset downstream bit 92. these bits together with pcsr:ofd1 .. 0 determine the offset of the pcm- frame in downstream direction. the following formulas apply for calculating the required register value. bnd is the bit number in downstream direction marked by the rising internal pfs-edge. bpf denotes the actual number of bits constituting a frame. pcm-mode 0: ofd9..2 = mod bpf (bnd C 17 + bpf) pcsr:ofd1..0 = 0 pcm-mode 1,3: pfd9..1 = mod bpf (bnd C 33 + bpf) pcsr: pfd0 = 0 pcm-mode 2: ofd9..0 = mod bpf (bnd C 65 + bpf) bit 7 bit 0 bnf7 bnf6 bnf5 bnf4 bnf3 bnf2 bnf1 bnf0 bit 7 bit 0 ofd9 ofd8 ofd7 ofd6 ofd5 ofd4 ofd3 ofd2
peb 20550 pef 20550 detailed register description semiconductor group 133 01.96 4.6.4 pcm-offset upstream register (pofu) access in demultiplexed m p-interface mode: read/write address: 13 h access in multiplexed m p-interface mode: read/write address: 26 h reset value: 00 h ofu9..2 offset upstream bit 92. these bits together with pcsr:ofu1 .. 0 determine the offset of the pcm- frame in upstream direction. the following formulas apply for calculating the required register value. bnu is the bit number in upstream direction marked by the rising internal pfs-edge. pcm-mode 0: ofu9..2 = mode bpf (bnu + 23) pcsr:ofu1..00 = 0 pcm-mode 1,3: ofu9..1 = mod bpf (bnu + 47) pcsr:ofu0 = 0 pcm-mode 2: ofu9..0 = mod bpf (bnu + 95) bit 7 bit 0 ofu9 ofu8 ofu7 ofu6 ofu5 ofu4 ofu3 ofu2
peb 20550 pef 20550 detailed register description semiconductor group 134 01.96 4.6.5 pcm-clock shift register (pcsr) access in demultiplexed m p-interface mode: read/write address: 14 h access in multiplexed m p-interface mode: read/write address: 28 h reset value: 00 h drcs double rate clock shift. 0the pcm-input and output data are not delayed 1the pcm-input and output data are delayed by one pdc-clock cycle ofd1..0 offset downstream bits 10, see pofd-register. dre downstream rising edge. 0the pcm-data is sampled with the falling edge of pdc 1the pcm-data is sampled with the rising edge of pdc adsro add shift register on output. 0the pcm-output data are not delayed 1the pcm-output data are delayed by one pdc-clock cycle note: if both drcs and adsro are set to logical 1, the pcm-output data are delayed by two pdc-clock cycles. drcs and adsro were added to the standard epic-1 pcsr register implemented in the peb 2055 up to and including version a3. ofu1..0 offset upstream bits 10, see pofu-register . ure upstream rising edge. 0the pcm-data is transmitted with the falling edge of pdc 1the pcm-data is transmitted with the rising edge of pdc note: if emod:ecmd2 is set to 0 some restrictions apply to the setting of pcsr (see chapter 4.5 ). bit 7 bit 0 drcs ofd1 ofd0 dre adsro ofu1 ofu0 ure
peb 20550 pef 20550 detailed register description semiconductor group 135 01.96 4.6.6 pcm-input comparison mismatch (picm) access in demultiplexed m p-interface mode: read/write address: 15 h access in multiplexed m p-interface mode: read/write address: 2a h reset value: xx h ipn input pair number. this bit denotes the pair of ports, where a bit mismatch occurred. 0mismatch between ports 0 and 1 1mismatch between ports 2 and 3 tsn6..0 time slot number. when a bit mismatch occurred these bits identify the affected bit position. bit 7 bit 0 ipn tsn6 tsn5 tsn4 tsn3 tsn2 tsn1 tsn0 pcm-mode time slot identification bit identification 0 tsn6tsn2 + 2 tsn1,0: 00 bits 6,7 01 bits 4,5 10 bits 2,3 11 bits 0,1 1, 3 tsn6tsn1 + 4 tsn0: 0 bits 47 1 bits 03 2 tsn6tsn0 + 8
peb 20550 pef 20550 detailed register description semiconductor group 136 01.96 4.6.7 configurable interface mode register 1 (cmd1) access in demultiplexed m p-interface mode: read/write address: 16 h access in multiplexed m p-interface mode: read/write address: 2c h reset value: 00 h css clock source selection. 0pdc and pfs are used as clock and framing source for the cfi. clock and framing signals derived from these sources are output on dcl and fsc. 1dcl and fsc are selected as clock and framing source for the cfi. if emod:ecmd2 is set to 0, then css has to be set to 0 (see chapter 4.5 ). csm cfi-synchronization mode. the rising fsc-edge synchronizes the cfi-frame. 0fsc is evaluated with every falling edge of dcl. 1fsc is evaluated with every rising edge of dcl. note: if css = 0 is selected, csm and pmod:psm must be programmed identical. csp1..0 clock source prescaler 1,0. the clock source frequency is divided according to the following table to obtain the cfi-reference clock crcl. bit 7 bit 0 css csm csp1 csp0 cmd1 cmd0 cis1 cis0 csp1,0 prescaler divisor 00 2 01 1.5 10 1 11 not allowed
peb 20550 pef 20550 detailed register description semiconductor group 137 01.96 cmd1..0 cfi-mode1,0. defines the actual number and configuration of the cfi-ports. where n = number of time slots in a pcm-frame cis1..0 cfi alternative input selection. in cfi-mode 1 and 2 cis1 .. 0 controls the assignment between logical and physical receive pins. in cfi-mode 0 and 3 cis1,0 should be set to 0. cmd1..0 cfi- mode number of logical ports cfi-data rate [kbit/s] min. required cfi-data rate [kbit/s] relative to pcm-data rate necessary reference clock (rcl) dcl-output frequencies cmd1:css0 = 0 min. max. 00 0 4 du (0..3) 128 2048 32n/3 2xdr dr, 2xdr 1) 01 1 2 du (0..1) 128 4096 64n/3 dr dr 10 2 1 du 128 8192 64n/3 0.5xdr dr 11 3 8 bit (0..7) 128 1024 16n/3 4xdr dr, 2xdr 1) in cfi-mode 0 data rate of 2.048 kbit/s can be used with a 2.048-kbit/s pdc-input clock, if emod:ecmd2 = '0'. refer to chapter 4.5 elic-mode register (emod) . cfi- mode port 0 port 1 port 2 port 3 du0 dd0 du1 dd1 du2 dd2 du3 dd3 0 in0 out0 in1 out1 in2 out2 in3 out3 1in0 cis0 = 0 out0 in1 cis1 = 0 out1 in0 cis0 = 1 tristate in1 cis1 = 1 tristate 2in cis0 = 0 out not active tristate in cis0 = 1 tristate not active tristate 3 i/o4 i/o0 i/o5 i/o1 i/o6 i/o2 i/o7 i/o3
peb 20550 pef 20550 detailed register description semiconductor group 138 01.96 4.6.8 configurable interface mode register 2 (cmd2) access in demultiplexed m p-interface mode: read/write address: 17 h access in multiplexed m p-interface mode: read/write address: 2e h reset value: 00 h fc2..0 framing output control. given that cmd1:css = 0, these bits determine the position of the fsc- pulse relative to the cfi-frame, as well as the type of fsc-pulse generated. the position and width of the fsc-signal with respect to the cfi-frame can be found in the following two figures 56 and 57 . bit 7 bit 0 fc2 fc1 fc0 coc cxf crr cbn9 cbn8
peb 20550 pef 20550 detailed register description semiconductor group 139 01.96 figure 56 position of the fsc-signal for fc-modes 0, 1, 2, 3 and 6 figure 57 position of the fsc-signal for fc-modes 4 and 6 note: the d-channel arbiter can only be operated with framing control modes 3, 6 and 7. itd05851 last time-slot of a frame time-slot 0 cfi rcl dcl dcl dcl fsc fsc fsc fsc fsc conditions: cfi mode 0; cmd2 : coc = 1 cfi modes 1, 2; cmd2 : coc = 0 cmd2 : fc2...0 = 011 (fc mode 3) frame cfi mode 0; cmd2 : coc = 0 cfi mode 3; cmd2 : coc = 1 cfi mode 3; coc = 0 cmd2 : fc2...0 = 010 (fc mode 2) cmd2 : fc2...0 = 000 (fc mode 0) cmd2 : fc2...0 = 001 (fc mode 1) cmd2 : fc2...0 = 010 (fc mode 6) itd05852 012345 frame fsc fsc rcl cfi cmd2 : fc2...0 = 110 (fc mode 6) conditions: time-slot cmd2 : fc2...0 = 100 (fc mode 4)
peb 20550 pef 20550 detailed register description semiconductor group 140 01.96 application examples: for further details on the framing output control please refer to chapter 5.2.2.3 . coc cfi-output clock rate. 0the frequency of dcl is identical to the cfi-data rate (all cfi-modes), 1the frequency of dcl is twice the cfi-data rate (cfi-modes 0 and 3 only!) note: applies only if cmd1:css = 0. if emod:ecmd2 is set to 0 then cmd2:coc must be set to 0 (see chapter 4.5 ). cxf cfi-transmit on falling edge. 0the data is transmitted with the rising crcl edge, 1the data is transmitted with the falling crcl edge. crr cfi-receive on rising edge. 0the data is received with the falling crcl edge, 1the data is received with the rising crcl edge. note: crr must be set to 0 in cfi-mode 3. cbn9..8 cfi-bit number 9..8 these bits, together with the cbnr:cbn7..0, hold the number of bits per cfi-frame. fc2 fc1 fc0 fc-mode main applications 0 0 0 0 1 1 1 1 0 0 1 1 0 0 1 1 0 1 0 1 0 1 0 1 0 1 2 3 4 5 6 7 iom-1 multiplexed (burst) mode general purpose general purpose general purpose 2 isac-s per sld-port reserved iom-2 or sld-modes software timed multiplexed applications
peb 20550 pef 20550 detailed register description semiconductor group 141 01.96 4.6.9 configurable interface bit number register (cbnr) access in demultiplexed m p-interface mode: read/write address: 18 h access in multiplexed m p-interface mode: read/write address: 30 h reset value: ff h cbn7..0 cfi-bit number 7..0. the number of bits that constitute a cfi-frame must be programmed to cmd2, cbnr:cbn9..0 as indicated below. cbn9..0 = number of bits - 1 for a 8-khz frame structure, the number of bits per frame can be derived from the data rate by division with 8000. 4.6.10 configurable interface time slot adjustment register (ctar) access in demultiplexed m p-interface mode: read/write address: 19 h access in multiplexed m p-interface mode: read/write address: 32 h reset value: 00 h tsn6..0 time slot number. the cfi-framing signal (pfs if cmd1:css = 0 or fsc if cmd1:css = 1) marks the cfi time slot called tsn according to the following formula: tsn6 .. 0 = tsn + 2 e.g.: if the framing signal is to mark time slot 0 (bit 7), ctar must be set to 02 h (cbsr to 20 h ). note: if cmd1:css = 0, the cfi-frame will be shifted - together with the fsc-output signal - with respect to pfs. the position of the cfi-frame relative to the fsc-output signal is not affected by these settings, but is instead determined by cmd2:fc2 .. 0. if cmd1:css = 1, the cfi-frame will be shifted with respect to the fsc-input signal. bit 7 bit 0 cbn7 cbn6 cbn5 cbn4 cbn3 cbn2 cbn1 cbn0 bit 7 bit 0 0 tsn6 tsn5 tsn4 tsn3 tsn2 tsn1 tsn0
peb 20550 pef 20550 detailed register description semiconductor group 142 01.96 4.6.11 configurable interface bit shift register (cbsr) access in demultiplexed m p-interface mode: read/write address: 1a h access in multiplexed m p-interface mode: read/write address: 34 h reset value: 00 h cds2..0 cfi-downstream bit shift 2..0. from the zero offset bit position (cbsr = 20 h ) the cfi-frame (downstream and upstream) can be shifted by up to 6 bits to the left (within the time slot number tsn programmed in ctar) and by up to 2 bits to the right (within the previous time slot tsn C 1) by programming the cbsr:cds2..0 bits: the bit shift programmed to cbsr:cds2..0 affects both the upstream and downstream frame position in the same way. cus3..2 cfi-upstream bit shift 3..0. these bits shift the upstream cfi-frame relative to the downstream frame by up to 15 bits. for cus3..0 = 0000, the upstream frame is aligned with the downstream frame (no bit shift). bit 7 bit 0 0 cds2 cds1 cds0 cus3 cus2 cus1 cus0 cbsr:cds2..0 time slot no. bit no. 000 001 010 011 100 101 110 111 tsn C 1 tsn C 1 tsn tsn tsn tsn tsn tsn 1 0 7 6 5 4 3 2
peb 20550 pef 20550 detailed register description semiconductor group 143 01.96 4.6.12 configurable interface subchannel register (cscr) access in demultiplexed m p-interface mode: read/write address: 1b h access in multiplexed m p-interface mode: read/write address: 36 h reset value: 00 h sc#1..#0 cfi-subchannel control for logical port #. the subchannel control bits sc#1..sc#0 specify separately for each logical port the bit positions to be exchanged with the data memory (dm) when a connection with a channel bandwidth as defined by the cm-code has been established: note: in cfi-mode 1: sc21 = sc01; sc20 = sc00; sc31 = sc11; sc30 = sc10 in cfi-mode 2: sc31 = sc21 = sc11 = sc01; sc30 = sc20 = sc10 = sc00 in cfi-mode 3: sc0x-control ports 0 and 4; sc1x-control ports 1 and 5; sc2x-control ports 2 and 6; sc3x-control ports 3 and 7 bit 7 bit 0 sc31 sc30 sc21 sc20 sc11 sc10 sc01 sc00 sc#1 sc#0 bit positions for cfi subchannels having a bandwidth of 64 kbit/s 32 kbit/s 16 kbit/s 0 0 1 1 0 1 0 1 7..0 7..0 7..0 7..0 7..4 3..0 7..4 3..0 7..6 5..4 3..2 1..0
peb 20550 pef 20550 detailed register description semiconductor group 144 01.96 4.6.13 memory access control register (macr) access in demultiplexed m p-interface mode: read/write address: 00 h access in multiplexed m p-interface mode: read/write address: 00 h reset value: xx h with the macr the m p selects the type of memory (cm or dm), the type of field (data or code) and the access mode (read or write) of the register access. when writing to the control memory code field, macr also contain the 4 bit code (cmc3..0) defining the function of the addressed cfi time slot. rws read/write select. 0write operation on control or data memories 1read operation on control or data memories moc3..0 memory operation code. cmc3..0 control memory code. these bits determine the type and destination of the memory operation as shown below. note: prior to a new access to any memory location (i.e. writing to macr) the star:mac bit must be polled for 0. 1. writing data to the upstream dm-data field (e.g. pcm-idle code). reading data from the upstream or downstream dm-data field. moc3..0 defines the bandwidth and the position of the subchannel as shown below: bit 7 bit 0 rws moc3moc2moc1moc0 cmc3 cmc2 cmc1 cmc0 macr: rws moc3moc2moc1moc0 0 0 0 moc3..0 transferred bits channel bandwidth 0000 0001 0011 0010 0111 0110 0101 0100 C bits 7..0 bits 7..4 bits 3..0 bits 7..6 bits 5..4 bits 3..2 bits 1..0 C 64 kbit/s 32 kbit/s 32 kbit/s 16 kbit/s 16 kbit/s 16 kbit/s 16 kbit/s
peb 20550 pef 20550 detailed register description semiconductor group 145 01.96 note: when reading a dm-data field location, all 8 bits are read regardless of the bandwidth selected by the moc-bits. 2. writing to the upstream dm-code (tristate) field. control-reading the upstream dm-code (tristate). moc = 1100 read/write tristate info from/to single pcm time slot moc = 1101 write tristate info to all pcm time slots note: the tristate field is exchanged with the 4 least significant bits (lsbs) of the madr. 3. writing data to the upstream or downstream cm-data field (e.g. signaling code). reading data from the upstream or downstream cm-data field. 4. writing data to the upstream or downstream cm-data field and code field (e.g. switching a cfi to/from pcm-connection). the 4-bit code field of the control memory (cm) defines the functionality of a cfi time slot and thus the meaning of the corresponding data field. this 4-bit code, written to the macr:cmc3..0 bit positions, will be transferred to the cm-code field. the 8-bit madr value is at the same time transferred to the cm-data field. there are codes for switching applications, pre-processed applications and for direct m p-access applications, as shown below: a) switching applications cmc = 0000 unassigned channel (e.g. cancelling an assigned channel) cmc = 0001 bandwidth 64 kbit/s pcm time slot bits transferred: 7..0 cmc = 0010 bandwidth 32 kbit/s pcm time slot bits transferred: 3..0 cmc = 0011 bandwidth 32 kbit/s pcm time slot bits transferred: 7..4 cmc = 0100 bandwidth 16 kbit/s pcm time slot bits transferred: 1..0 cmc = 0101 bandwidth 16 kbit/s pcm time slot bits transferred: 3..2 cmc = 0110 bandwidth 16 kbit/s pcm time slot bits transferred: 5..4 cmc = 0111 bandwidth 16 kbit/s pcm time slot bits transferred: 7..6 note: the corresponding cfi time slot bits to be transferred are chosen in the cscr-register. macr: rws moc3moc2moc1moc0 0 0 0 macr: rws1001000 macr: 0 1 1 1 cmc3 cmc2 cmc1 cmc0
peb 20550 pef 20550 detailed register description semiconductor group 146 01.96 b) pre-processed applications downstream: upstream: c) m p-access applications setting cmc = 1001, initializes the corresponding cfi time slot to be accessed by the m p. concurrently, the datum in madr is written (as 8-bit cfi-idle code) to the cm-data field. the content of the cm-data field is directly exchanged with the corresponding time slot. note that once the cm-code field has been initialized, the cm-data field can be written and read as described in chapter 3 . 5. control-reading the upstream or downstream cm-code. the cm-code can then be read out of the 4 lsbs of the madr-register. application even cm address odd cm address decentral d-channel handling cmc = 1000 cmc = 1011 central d-channel handling cmc = 1010 cmc = pcm-code for a 2-bit subtime slot 6-bit signaling (e.g. analog iom) cmc = 1010 cmc = 1011 8-bit signaling (e.g. sld) cmc = 1010 cmc = 1011 d-channel handling by sacco-a with elic-arbiter cmc = 1010 cmc = 1011 application even cm address odd cm address decentral d-channel handling cmc = 1000 cmc = 0000 central d-channel handling cmc = 1000 cmc = pcm-code for a 2-bit subtime slot 6-bit signaling (e.g. analog iom) cmc = 1010 cmc = 1010 8-bit signaling (e.g. sld) cmc = 1011 cmc = 1011 all code combinations are also valid for elic-arbiter operation. macr: 0 1111001 macr: 1 1110000
peb 20550 pef 20550 detailed register description semiconductor group 147 01.96 4.6.14 memory access address register (maar) access in demultiplexed m p-interface mode: read/write address: 01 h access in multiplexed m p-interface mode: read/write address: 02 h reset value: xx h the memory access address register maar specifies the address of the memory access. this address encodes a cfi time slot for control memory (cm) and a pcm time slot for data memory (dm) accesses. bit 7 of maar (u/d -bit) selects between upstream and downstream memory blocks. bits ma6..0 encode the cfi- or pcm-port and time slot number as in the following tables: table 19 time slot encoding for data memory accesses bit 7 bit 0 u/d ma6 ma5 ma4 ma3 ma2 ma1 ma0 data memory address pcm-mode 0 bit u/d bits ma6..ma3, ma0 bits ma2..ma1 direction selection time slot selection logical pcm-port number pcm-mode 1,3 bit u/d bits ma6..ma3, ma1, ma0 bit ma2 direction selection time slot selection logical pcm-port number pcm-mode 2 bit u/d bits ma6..ma0 direction selection time slot selection
peb 20550 pef 20550 detailed register description semiconductor group 148 01.96 table 20 time slot encoding for control memory accesses 4.6.15 memory access data register (madr) access in demultiplexed m p-interface mode: read/write address: 02 h access in multiplexed m p-interface mode: read/write address: 04 h reset value: xx h the memory access data register madr contains the data to be transferred from or to a memory location. the meaning and the structure of this data depends on the kind of memory being accessed. 4.6.16 synchronous transfer data register (stda) access in demultiplexed m p-interface mode: read/write address: 03 h access in multiplexed m p-interface mode: read/write address: 06 h reset value: xx h the stda-register buffers the data transferred over the synchronous transfer channel a. mtda7 to mtda0 hold the bits 7 to 0 of the respective time slot. mtda7 (msb) is the bit transmitted/received first, mtda0 (lsb) the bit transmitted/received last over the serial interface. control memory address cfi-mode 0 bit u/d bits ma6..ma3, ma0 bits ma2..ma1 direction selection time slot selection logical cfi-port number cfi-mode 1 bit u/d bits ma6..ma3, ma2, ma0 bit ma1 direction selection time slot selection logical cfi-port number cfi-mode 2 bit u/d bits ma6..ma0 direction selection time slot selection cfi-mode 3 bit u/d bits ma6..ma4, ma0 bits ma3..ma1 direction selection time slot selection logical cfi-port number bit 7 bit 0 md7 md6 md5 md4 md3 md2 md1 md0 bit 7 bit 0 mtda7 mtda6 mtda5 mtda4 mtda3 mtda2 mtda1 mtda0
peb 20550 pef 20550 detailed register description semiconductor group 149 01.96 4.6.17 synchronous transfer data register b (stdb) access in demultiplexed m p-interface mode: read/write address: 04 h access in multiplexed m p-interface mode: read/write address: 08 h reset value: xx h the stda-register buffers the data transferred over the synchronous transfer channel a. mtda7 to mtda0 hold the bits 7 to 0 of the respective time slot. mtda7 (msb) is the bit transmitted/received first, mtda0 (lsb) the bit transmitted/received last over the serial interface. 4.6.18 synchronous transfer receive address register a (sara) access in demultiplexed m p-interface mode: read/write address: 05 h access in multiplexed m p-interface mode: read/write address: 0a h reset value: xx h the sara-register specifies for synchronous transfer channel a from which input interface, port and time slot the serial data is extracted. this data can then be read from the stda-register. isra interface select receive for channel a. 0 selects the pcm-interface as the input interface for synchronous channel a. 1 selects the cfi-interface as the input interface for synchronous channel a. mtra6..0 m p-transfer receive address for channel a; selects the port and time slot number at the interface selected by isra according to tables 16 and 17 : mtra6..0 = ma6..0. bit 7 bit 0 mtdb7 mtdb6 mtdb5 mtdb4 mtdb3 mtdb2 mtdb1 mtdb0 bit 7 bit 0 isra mtra6 mtra5 mtra4 mtra3 mtra2 mtra1 mtra0
peb 20550 pef 20550 detailed register description semiconductor group 150 01.96 4.6.19 synchronous transfer receive address register b (sarb) access in demultiplexed m p-interface mode: read/write address: 06 h access in multiplexed m p-interface mode: read/write address: 0c h reset value: xx h the sarb-register specifies for synchronous transfer channel b from which input interface, port and time slot the serial data is extracted. this data can then be read from the stdb register. isrb interface select receive for channel b. 0 selects the pcm-interface as the input interface for synchronous channel b. 1 selects the cfi-interface as the input interface for synchronous channel b. mtrb6..0 m p-transfer receive address for channel b; selects the port and time slot number at the interface selected by isrb according to tables 16 and 17 : mtrb6..0 = ma6..0. 4.6.20 synchronous transfer transmit address register a (saxa) access in demultiplexed m p-interface mode: read/write address: 07 h access in multiplexed m p-interface mode: read/write address: 0e h reset value: xx h the saxa-register specifies for synchronous transfer channel a to which output interface, port and time slot the serial data contained in the stda-register is sent. isxa interface select transmit for channel a. 0 selects the pcm-interface as the output interface for synchronous channel a. 1 selects the cfi-interface as the output interface for synchronous channel a. mtxa6..0 m p-transfer transmit address for channel a; selects the port and time slot number at the interface selected by isxa according to tables 16 and 17 : mtxa6..0 = ma6..0. bit 7 bit 0 isrb mtrb6 mtrb5 mtrb4 mtrb3 mtrb2 mtrb1 mtrb0 bit 7 bit 0 isxa mtxa6 mtxa5 mtxa4 mtxa3 mtxa2 mtxa1 mtxa0
peb 20550 pef 20550 detailed register description semiconductor group 151 01.96 4.6.21 synchronous transfer transmit address register b (saxb) access in demultiplexed m p-interface mode: read/write address: 08 h access in multiplexed m p-interface mode: read/write address: 10 h reset value: xx h the saxb-register specifies for synchronous transfer channel b to which output interface, port and time slot the serial data contained in the stdb-register is sent. isxb interface select transmit for channel b. 0 selects the pcm-interface as the output interface for synchronous channel b. 1 selects the cfi-interface as the output interface for synchronous channel b. mtxb6..0 m p-transfer transmit address for channel b; selects the port and time slot number at the interface selected by isxb according to tables 16 and 17 : mtxb6..0 = ma6..0. 4.6.22 synchronous transfer control register (stcr) access in demultiplexed m p-interface mode: read/write address: 09 h access in multiplexed m p-interface mode: read/write address: 12 h reset value: 00xxxxxx b the stcr-register bits are used to enable or disable the synchronous transfer utility and to determine the sub time slot bandwidth and position if a pcm-interface time slot is involved. tae, tbe transfer channel a (b) enable. 1 enables the m p transfer of the corresponding channel. 0 disables the m p transfer of the corresponding channel. cta2..0 channel type a (b); these bits determine the bandwidth of the channel and the position of the relevant bits in the time slot acoording to the table below. bit 7 bit 0 isxb mtxb6 mtxb5 mtxb4 mtxb3 mtxb2 mtxb1 mtxb0 bit 7 bit 0 tbe tae ctb2 ctb1 ctb0 cta2 cta1 cta0
peb 20550 pef 20550 detailed register description semiconductor group 152 01.96 ctb2..0 note that if a cfi time slot is selected as receive or transmit time slot of the synchronous transfer, the 64-kbit/s bandwidth must be selected (ct#2..ct#0 = 001). 4.6.23 mf-channel active indication register (mfair) access in demultiplexed m p-interface mode: read/write address: 0a h access in multiplexed m p-interface mode: read/write address: 14 h reset value: 00 h this register is only used in iom-2 applications (active handshake protocol) in order to identify active monitor channels when the "search for active monitor channels" command (cmdr:mfso) has been executed. so mf channel search on. 0the search is completed. 1the epic-1 is still busy looking for an active channel. sad5..0 subscriber address 5..0; after an ista:mac-interrupt these bits point to the port and time slot where an active channel has been found. the coding is identical to mfsar:sad5..sad0. ct#2 ct#1 ct#0 bandwidth transferred bits 00 0 00 1 01 0 01 1 10 0 10 1 11 0 11 1 not allowed 64 kbit/s 32 kbit/s 32 kbit/s 16 kbit/s 16 kbit/s 16 kbit/s 16 kbit/s C bits 7..0 bits 3..0 bits 7..4 bits 1..0 bits 3..2 bits 5..4 bits 7..6 bit 7 bit 0 0 so sad5 sad4 sad3 sad2 sad1 sad0
peb 20550 pef 20550 detailed register description semiconductor group 153 01.96 4.6.24 mf-channel subscriber address register (mfsar) access in demultiplexed m p-interface mode: read/write address: 0a h access in multiplexed m p-interface mode: read/write address: 14 h reset value: xx h the exchange of monitor data normally takes place with only one subscriber circuit at a time. this register serves to point the mf-handler to that particular cfi time slot. mftc1..0 mf channel transfer control 1..0; these bits, in addition to cmdr:mft1,0 and omdr:mfps control the mf-channel transfer as indicated in table 21 . sad5..0 subscriber address 5..0; these bits define the addressed subscriber. the cfi time slot encoding is similar to the one used for control memory accesses using the maar-register ( tables 19 and 20 ): cfi time slot encoding of mfsar derived from maar: maar:ma7 selects between upstream and downstream cm-blocks. this information is not required since the transfer direction is defined by cmdr (transmit or receive). maar:ma0 selects between even and odd time slots. this information is also not required since mf-channels are always located on even time slots. 4.6.25 monitor/feature control channel fifo (mffifo) access in demultiplexed m p-interface mode: read/write address: 0b h access in multiplexed m p-interface mode: read/write address: 16 h reset value: empty the 16-byte bi-directional mffifo provides intermediate storage for data bytes to be transmitted or received over the monitor or feature control channel. mfd7..0 mf data bits 7..0; mfd7 (msb) is the first bit to be sent over the serial cfi, mfd0 (lsb) the last. note: the byte n + 1 of an n-byte transmit message in monitor channel is not defined. bit 7 bit 0 mftc1 mftc0 sad5 sad4 sad3 sad2 sad1 sad0 maar: ma7 ma6 ma5 ma4 ma3 ma2 ma1 ma0 mfsar: mftc1 mftc0 sad5 sad4 sad3 sad2 sad1 sad0 bit 7 bit 0 mfd7 mfd6 mfd5 mfd4 mfd3 mfd2 mfd1 mfd0
peb 20550 pef 20550 detailed register description semiconductor group 154 01.96 4.6.26 signaling fifo (cififo) access in demultiplexed m p-interface mode: read address: 0c h access in multiplexed m p-interface mode: read address: 18 h reset value: 0xxxxxxx b the 9 byte deep cififo stores the addresses of cfi time slots in which a c/i- and/or a sig-value change has taken place. this address information can then be used to read the actual c/i- or sig-value from the control memory. sbv signaling byte valid. 0 the sad6..0 bits are invalid. 1 the sad6..0 bits indicate a valid subscriber address. the polarity of sbv is chosen such that the whole 8 bits of the cififo can be copied to the maar register in order to read the upstream c/i- or sig-value from the control memory. sad6..0 subscriber address bits 6..0; the cm-address which corresponds to the cfi time slot where a c/i- or sig-value change has taken place is encoded in these bits. for c/i-channels sad6..0 point to an even cm-address (c/ i-value), for sig-channels sad6..0 point to an odd cm-address (stable sig- value). 4.6.27 timer register (timr) access in demultiplexed m p-interface mode: write address: 0c h access in multiplexed m p-interface mode: write address: 18 h reset value: 00 h the epic-1 timer can be used for 3 different purposes: timer interrupt generation (ista:tig), fsc multiframe generation (cmd2:fc2..0 = 111) and last look period generation. ssr signaling sampling rate. 0 the last look period is defined by tval6..0. 1 the last look period is fixed to 125 m s. bit 7 bit 0 sbv sad6 sad5 sad4 sad3 sad2 sad1 sad0 bit 7 bit 0 ssr tval6 tval5 tval4 tval3 tval2 tval2 tval0
peb 20550 pef 20550 detailed register description semiconductor group 155 01.96 tval6..0 timer value bits 6..0; the timer period, equal to (1+tval6..0) 250 m s, is programmed here. it can thus be adjusted within the range of 250 m s up to 32 ms. the timer is started as soon as cmdr:st is set to 1 and stopped by writing the timr-register or by selecting omdr:oms0 = 0. 4.6.28 status register epic ? -1 (star_e) access in demultiplexed m p-interface mode: read address: 0d h access in multiplexed m p-interface mode: read address: 1a h reset value: 05 h the status register star displays the current state of certain events within the epic-1. the star register bits do not generate interrupts and are not modified by reading star. mac memory access 0no memory access is in operation. 1 a memory access is in operation. hence, the memory access registers may not be used. note: mac is also set and reset during synchronous transfers. tac timer active 0 the timer is stopped. 1 the timer is running. pss pcm-synchronization status. 1 the pcm-interface is synchronized. 0 the pcm-interface is not synchronized. there is a mismatch between the pbnr-value and the applied clock and framing signals (pdc/pfs) or omdr:oms0 = 0. mfto mf-channel transfer in operation. 0 no mf-channel transfer is in operation. 1 an mf-channel transfer is in operation. mfab mf-channel transfer aborted. 0 the remote receiver did not abort a handshake message transfer. 1 the remote receiver aborted a handshake message transfer. mfae mffifo-access enable. 0 the mffifo may not be accessed. 1 the mffifo may be either read or written to. bit 7 bit 0 mac tac pss mfto mfab mfae mfrw mffe
peb 20550 pef 20550 detailed register description semiconductor group 156 01.96 mfrw mffifo read/write. 0 the mffifo is ready to be written to. 1 the mffifo may be read. mffe mffifo empty 0 the mffifo is not empty. 1 the mffifo is empty. 4.6.29 command register epic ? -1 (cmdr_e) access in demultiplexed m p-interface mode: write address: 0d h access in multiplexed m p-interface mode: write address: 1a h reset value: 00 h writing a logical 1 to a cmdr-register bit starts the respective operation. st start timer. 0 not action. if the timer shall be stopped, the timr-register must simply be written with a random value. 1 starts the timer to run cyclically from 0 to the value programmed in timr:tval6..0. tig timer interrupt generation. 0 setting the tig-bit to logical 0 together with the cmdr:st-bit set to logical 1 disables the interrupt generation. 1 setting the tig-bit to logical 1 together with cmdr:st-bit set to logical 1 causes the epic-1 to generate a periodic interrupt (ista:tin) each time the timer expires. cfr cififo reset. 0 no action. 1 resets the signaling fifo within 2 rcl-periods, i.e. all entries and the ista:sfi-bit are cleared. mft1..0 mf-channel transfer control bits 1,0; these bits start the monitor transfer enabling the contents of the mffifo to be exchanged with the subscriber circuits as specified in mfsar. the function of some commands depends furthermore on the selected protocol (omdr:mfps). table 21 summarizes all available mf-commands. mfso mf-channel search on. bit 7 bit 0 0 st tig cfr mft1 mft0 mfso mffr
peb 20550 pef 20550 detailed register description semiconductor group 157 01.96 0 no action. 1 the epic-1 starts to search for active mf-channels. active channels are characterized by an active mx-bit (logical 0) sent by the remote transmitter. if such a channel is found, the corresponding address is stored in mfair and an ista:mac-interrupt is generated. the search is stopped when an active mf-channel has been found or when omdr:oms0 is set to 0. mffr mffifo reset. 0 no action 1 resets the mffifo and all operations associated with the mf-handler (except for the search function) within 2 rcl-periods. the mffifo is set into the state "mffifo empty", write access enabled and any monitor data transfer currently in process will be aborted. table 21 summary of mf-channel commands hs: handshake facility enabled (omdr:mfps = 1) no hs: handshake facility disable (omdr:mfps = 0) transfer mode cmdr: mft1,mft0 mfsar protocol selection application inactive 00 xxxxxxxx hs, no hs idle state transmit 01 00 sad5..0 hs, no hs iom-2, iom-1, sld transmit broadcast 01 01xxxxxx hs, no hs iom-2, iom-1, sld test operation 01 10------ hs, no hs iom-2, iom-1, sld transmit continuous 11 00 sad5..0 hs iom-2 transmit + receive same time slot any # of bytes 1 byte expected 2 bytes expected 8 bytes expected 16 bytes expected 10 10 10 10 10 00 sad5..0 00 sad5..0 01 sad5..0 10 sad5..0 11 sad5..0 hs no hs no hs no hs no hs iom-2 iom-1 (iom-1) (iom-1) (iom-1) transmit + receive same line 1 byte expected 2 bytes expected 8 bytes expected 16 bytes expected 11 11 11 11 00 sad5..0 01 sad5..0 10 sad5..0 11 sad5..0 no hs no hs no hs no hs sld sld sld sld
peb 20550 pef 20550 detailed register description semiconductor group 158 01.96 4.6.30 interrupt status register epic ? -1 (ista_e) access in demultiplexed m p-interface mode: read address: 0e h access in multiplexed m p-interface mode: read address: 1c h reset value: 00 h the ista-register should be read after an interrupt in order to determine the interrupt source. tin timer interrupt; a timer interrupt previously requested with cmdr:st,tig = 1 has occurred. the tin-bit is reset by reading ista. it should be noted that the interrupt generation is periodic, i.e. unless stopped by writing to timr, the ista:tin will be generated each time the timer expires. sfi signaling fifo-interrupt; this interrupt is generated if there is at least one valid entry in the cififo indicating a change in a c/i- or sig-channel. reading ista does not clear the sfi-bit. instead sfi is cleared if the cififo is empty which can be accomplished by reading all valid entries of the cififo or by resetting the cififo by setting cmdr:cfr to 1. mffi mffifo-interrupt; the last mf-channel command (issued by cmdr:mft1,mft0) has been executed and the epic-1 is ready to accept the next command. additional information can be read from star:mftomffe. mffi is reset by reading ista. mac monitor channel active interrupt; the epic-1 has found an active monitor channel. a new search can be started by reissuing the cmdr:mfso- command. mac is reset by reading ista. pfi pcm-framing interrupt; the star:pss-bit has changed its polarity. to determine whether the pcm-interface is synchronized or not, star must be read. the pfi-bit is reset by reading ista. pim pcm-input mismatch; this interrupt is generated immediately after the comparison logic has detected a mismatch between a pair of pcm-input lines. the exact reason for the interrupt can be determined by reading the picm-register. reading ista clears the pim-bit. a new pim-interrupt can only be generated after the picm-register has been read. bit 7 bit 0 tin sfi mffi mac pfi pim sin sov
peb 20550 pef 20550 detailed register description semiconductor group 159 01.96 sin synchronous transfer interrupt; the sin-interrupt is enabled if at least one synchronous transfer channel (a and/or b) is enabled via the stcr:tae, tbe-bits. the sin-interrupt is generated when the access window for the m p opens. after the occurrence of the sin-interrupt the m p can read and/or write the synchronous transfer data registers (stda, stdb). the sin-bit is reset by reading ista. sov synchronous transfer overflow; the sov-interrupt is generated if the m p fails to access the data registers (stda, stdb) within the access window. the sov-bit is reset by reading ista. 4.6.31 mask register epic ? -1 (mask_e) access in demultiplexed m p-interface mode: write address: 0e h access in multiplexed m p-interface mode: write address: 1c h reset value: 00 h a logical 1 disables the corresponding interrupt as described in the ista-register. a masked interrupt is stored internally and reported in ista immediately if the mask is released. however, an sfi-interrupt is also reported in ista if masked. in this case no interrupt is generated. when writing register mask_e while ista_e indicates a non masked interrupt int is temporarily set into the inactive state. bit 7 bit 0 tin sfi mffi mac pfi pim sin sov
peb 20550 pef 20550 detailed register description semiconductor group 160 01.96 4.6.32 operation mode register (omdr) access in demultiplexed m p-interface mode: read/write address: 0f h access in multiplexed m p-interface mode: read/write address: 1e h /3e h reset value: 00 h oms1..01 operational mode selection; these bits determine the operation mode of the epic-1 is working in according to the following table: bit 7 bit 0 oms1 oms0 psb ptl cos mfps csb rbs oms1..0 function 00 the cm-reset mode is used to reset all locations of the control memory code and data fields with a single command within only 256 rcl-cycles. a typical application is resetting the cm with the command macr = 70 h which writes the contents of madr (xx h ) to all data field locations and the code '0000' (unassigned channel) to all code field locations. a cm-reset should be made after each hardware reset. in the cm-reset mode the epic-1 does not operate normally i.e. the cfi- and pcm-interfaces are not operational. 10 the cm-initialization mode allows fast programming of the control memory since each memory access takes a maximum of only 2.5 rcl-cycles compared to the 9.5 rcl-cycles in the normal mode. accesses are performed on individual addresses specified by maar. the initialization of control/signaling channels in iom- or sld- applications can for example be carried out in this mode. in the cm- initialization mode the epic-1 does also not work normally. 11 in the normal operation mode the cfi- and pcm-interfaces are operational. memory accesses performed on single addresses (specified by maar) take 9.5 rcl-cycles. an initialization of the complete data memory tristate field takes 1035 rcl-cycles. 01 in test mode the epic-1 sustains normal operation. however memory accesses are no longer performed on a specific address defined by maar, but on all locations of the selected memory, the contents of maar (including the u/d-bit!) being ignored. a test mode access takes 2057 rcl-cycles.
peb 20550 pef 20550 detailed register description semiconductor group 161 01.96 psb pcm-standby. 0the pcm-interface output pins txd0..3 are set to high impedance and those tsc -pins that are actually used as tristate control signals are set to logical 1 (inactive). 1the pcm-output pins transmit the contents of the upstream data memory or may be set to high impedance via the data memory tristate field. ptl pcm-test loop. 0the pcm-test loop is disabled. 1the pcm-test loop is enabled, i.e. the physical transmit pins txd# are internally connected to the corresponding physical receive pins rxd#, such that data transmitted over txd# are internally looped back to rxd# and data externally received over rxd# are ignored. the txd# pins still output the contents of the upstream data memory according to the setting of the tristate field (only modes 0 and 1; mode 1 with ais-bit set). cos cfi-output driver selection. 0the cfi-output drivers are tristate drivers. 1the cfi-output drivers are open drain drivers. mfps monitor/feature control channel protocol selection. 0handshake facility disabled (sld and iom-1 applications) 1handshake facility enabled (iom-2 applications) csb cfi-standby. 0the cfi-interface output pins dd0..3, du0..3, dcl and fsc are set to high impedance. 1the cfi-output pins are active. rbs register bank selection. used in demultiplexed data/address modes only. the rbs-bit is internally ored with the a4 address pin. the epic-1 registers can therefore be accessed using two different methods: 1) if rbs is always set to logical 0, the registers can be accessed using all 5 address pins a4..a0. 2) if a4 is externally set to logical 0 during epic-1 accesses, the rbs-bit has to be set to 0to access the registers used during device initialization 1to access the registers used during device operation.
peb 20550 pef 20550 detailed register description semiconductor group 162 01.96 4.6.33 version number status register (vnsr) access in demultiplexed m p-interface mode: write address: 1d h access in multiplexed m p-interface mode: write address: 3a h reset value: 0x h the vnsr-register bits do not generate interrupts and are not modified by reading vnsr. the ir and vn3..0 bits are read only bits, the swrx-bit is a write only bit. ir initialization request; this bit is set to logical 1 after an inappropriate clocking or after a power failure. it is reset to logical 0 after a control memory reset command: omdr:oms1..0 = 00, macr = 7x. swrx software reset external. when set, the pin resin is activated. resin is reset with the next epic-1 interrupt, i.e. the epic-1 timer may be used to generate a resin-pulse without generating an internal elic-reset. vn3..0 version status number; these bits display the epic-1 chip version as follows bit 7 bit 0 ir 0 0 swrx vn3 vn2 vn1 vn0 vn3..0 chip versions 0001 v1.2
peb 20550 pef 20550 detailed register description semiconductor group 163 01.96 4.7 sacco 4.7.1 receive fifo (rfifo) access in demultiplexed m p-interface mode: read address (ch-a/ch-b): 00 h ..1f h /40 h ..5f h access in multiplexed m p-interface mode: read address: (ch-a/ch-b): 00 h ..3e h /80 h ..be h reset value: xx h rd7..0 receive data 70, data byte received on the serial interface. interrupt controlled data transfer (interrupt mode, selected if dma-bit in register xbch is reset). up to 32 bytes of received data can be read from the rfifo following an rpf or an rme interrupt. rpf-interrupt: exactly 32 bytes to be read. rme-interrupt: the number of bytes can be determined reading the registers rbcl, rbch. dma controlled data transfer (dma-mode, selected if dma-bit in register xbch is set). if the rfifo contains 32 bytes, the sacco autonomously requests a block data transfer by activating the drqra/b-line as long as the 31st read cycle is finished. this forces the dma-controller to continuously perform bus cycles until 32 bytes are transferred from the sacco to the system memory (dma-controller mode: demand transfer, level triggered). if the rfifo contains less than 32 bytes (one short frame or the last bytes of a long frame) the sacco requests a block data transfer depending on the contents of the rfifo according to the following table: bit 7 bit 0 rd7 rd6 rd5 rd4 rd3 rd2 rd1 rd0 rfifo contents (bytes) dma transfers (bytes) (1), 2, 3 4 4 - 7 8 8 - 15 16 16 - 32 32
peb 20550 pef 20550 detailed register description semiconductor group 164 01.96 additionally an rme-interrupt is issued after the last byte has been transferred. as a result, the dma-controller may transfer more bytes as actually valid in the current received frame. the valid byte count must therefore be determined reading the registers rbch, rbcl following the rme-interrupt. the corresponding drqra/b pin remains "high" as long as the rfifo requires data transfers. it is deactivated upon the rising edge of the 31st dma-transfer or, if n < 32 or n is the remainder of a long frame, upon the falling edge of the last dma-transfer. if n 3 32 and the dma-controller does not perform the 32nd dma-cycle, the drqra/b- line will go high again as soon as css goes high, thus indicating further bytes to fetch. 4.7.2 transmit fifo (xfifo) access in demultiplexed m p-interface mode: write address (ch-a/ch-b): 00 h ..1f h /40 h ..5f h access in multiplexed m p-interface mode: write address: (ch-a/ch-b): 00 h ..3e h /b0 h ..be h reset value: xx h td7..0 transmit data 70, data byte to be transmitted on the serial interface. interrupt controlled data transfer (interrupt mode, selected if dma-bit in register xbch is reset). up to 32 bytes of transmit data can be written to the xfifo following an xpr-interrupt. dma controlled data transfer (dma-mode, selected if dma-bit in register xbch is set). prior to any data transfer, the actual byte count of the frame to be transmitted must be written to the registers xbch, xbcl: 1 byte: xbcl = 0 n bytes: xbcl = n - 1 if a data transfer is then initiated via the cmdr-register (commands xpd/xtf or xdd), the sacco autonomously requests the correct amount of block data transfers (n 32 + remainder, n = 0,1, ). the corresponding drqta/b pin remains "high" as long as the xfifo requires data transfers. it is deactivated upon the rising edge of wr in the dma-transfer 31 or n - 1 respectively. the dma-controller must take care to perform the last dma-transfer. if it is missing, the drqta/b-line will go active again when css is raised. bit 7 bit 0 td7 td6 td5 td4 td3 td2 td1 td0
peb 20550 pef 20550 detailed register description semiconductor group 165 01.96 4.7.3 interrupt status register (ista_a/b) access in demultiplexed m p-interface mode: read address: (ch-a/ch-b): 20 h /60 h access in multiplexed m p-interface mode: read address: (ch-a/ch-b): 40 h /c0 h reset value: 00 h rme receive message end. a message of up to 32 bytes or the last part of a message greater then 32 bytes has been received and is now available in the rfifo. the message is complete! the actual message length can be determined by reading the registers rbcl, rbch. rme is not generated when an extended hdlc- frame is recognized in auto-mode (ehc interrupt). in dma-mode a rme-interrupt is generated after the dma-transfer has been finished correctly, indicating that the processor should read the registers rbch/rbcl to determine the correct message length. rpf receive pool full. a data block of 32 bytes is stored in the rfifo. the message is not yet completed! note: this interrupt is only generated in interrupt mode (not in dma-mode). xpr transmit pool ready. a data block of up to 32 bytes can be written to the xfifo. bit 7 bit 0 rme rpf 0 xpr 0 0 0 0
peb 20550 pef 20550 detailed register description semiconductor group 166 01.96 4.7.4 mask register (mask_a/b) access in demultiplexed m p-interface mode: write address: (ch-a/ch-b): 20 h /60 h access in multiplexed m p-interface mode: write address: (ch-a/ch-b): 40 h /c0 h reset value: 00 h (all interrupts enabled) rme enables(0)/disables(1) the receive message end interrupt. rpf enables(0)/disables(1) the receive pool full interrupts. xpr enables(0)/disables(1) the transmit pool ready interrupt. each interrupt source can be selectively masked by setting the respective bit in the mask_a/b-register (bit position corresponding to the ista_a/b-register). masked interrupts are internally stored but not indicated when reading ista_a/b and also not flagged into the top level ista. after releasing the respective mask_a/b-bit they will be indicated again in ista_a/b and in the top level ista. when writing register mask_a/b while ista_a/b indicates a non masked interrupt the int -pin is temporarily set into the inactive state. in this case the interrupt remains indicated in the ista_a/b until these registers are read. 4.7.5 extended interrupt register (exir_a/b) access in demultiplexed m p-interface mode: read address: (ch-a/ch-b): 24 h /64 h access in multiplexed m p-interface mode: read address: (ch-a/ch-b): 48 h /c8 h reset value: 00 h bit 7 bit 0 rme rpf 0 xpr 0 0 0 0 bit 7 bit 0 xmr xdu/exe ehc rfo 0 rfs 0 0
peb 20550 pef 20550 detailed register description semiconductor group 167 01.96 xmr transmit message repeat. the transmission of a frame has to be repeated because: C a frame consisting of more then 32 bytes is polled a second time in auto- mode. C collision has occurred after sending the 32nd data byte of a message in a bus configuration. C cts (transmission enable) has been withdrawn after sending the 32nd data byte of a message in point-to-point configuration. xdu/exe transmission data underrun/extended transmission end. the actual frame has been aborted with idle, because the xfifo holds no further data, but the frame is not yet complete according to registers xbch/ xbcl. in extended transparent mode, this bit indicates the transmission end condition. note: it is not possible to transmit frames when a xmr- or xdu-interrupt is indicated. ehc extended hdlc-frame. the sacco has received a frame in auto-mode which is neither a rr- nor an i-frame. the control byte is stored temporarily in the rhcr-register but not in the rfifo. rfo receive frame overflow. a frame could not be stored due to the occupied rfifo (i.e. whole frame has been lost). this interrupt can be used for statistical purposes and indicates, that the cpu does not respond quickly enough to an incoming rpf- or rme- interrupt. rfs receive frame start. this is an early receiver interrupt activated after the start of a valid frame has been detected, i.e. after a valid address check in operation modes providing address recognition, otherwise after the opening flag (transparent mode 0), delayed by two bytes. after a rfs-interrupt the contents of ? rhcr ? ral1 ? rsta bit3-0 are valid and can by read by the cpu. the rfs-interrupt is maskable by programming bit ccr2:rie.
peb 20550 pef 20550 detailed register description semiconductor group 168 01.96 4.7.6 command register (cmdr) access in demultiplexed m p-interface mode: write address: (ch-a/ch-b): 21 h /61 h access in multiplexed m p-interface mode: write address: (ch-a/ch-b): 42 h /c2 h reset value: 00 h note: the maximum time between writing to the cmdr-register and the execution of the command is 2.5 hdc-clock cycles. therefore, if the cpu operates with a very high clock speed in comparison to the sacco-clock, it is recommended that the bit star:cec is checked before writing to the cmdr-register to avoid loosing of commands. rmc receive message complete. a '1' confirms, that the actual frame or data block has been fetched following a rpf- or rme-interrupt, thus the occupied space in the rfifo can be released. note: in dma-mode this command is only issued once after a rme-interrupt. the sacco does not generate further dma requests prior to the reception of this command. rhr reset hdlc-receiver. a '1' deletes all data in the rfifo and in the hdlc-receiver. arep/ auto repeat/transmission repeat. xrep auto-mode: arep the frame (max. length 32 byte) stored in xfifo can be polled repeatedly by the opposite station until the frame is acknowledged. extended transparent mode 0,1: xrep together with xtf- and xme-set (cmdr = 2a h ) the sacco repeatedly transmits the contents of the xfifo (132 bytes) fully transparent without hdlc-framing, i.e. without flag, crc-insertion, bit stuffing. the cyclical transmission continues until the command (cmdr:xres) is executed or the bit xrep is reset. the inter frame timefill pattern is issued afterwards. when resetting xrep, data transmission is stopped after the next xfifo- cycle is completed, the xres-command terminates data transmission immediately. note: mode:cft must be set to '0' when using cyclic transmission. bit 7 bit 0 rmc rhr arep/ xrep 0 xpd/ xtf xdd xme xres
peb 20550 pef 20550 detailed register description semiconductor group 169 01.96 xpd/xtf transmit prepared data/transmit transparent frame. auto-mode: xpd prepares the transmission of an i-frame ("prepared data") in auto-mode. the actual transmission starts, when the sacco receives an i-frame with poll-bit set and axh as the first data byte (pbc-command "transmit prepared data"). upon the reception of a different poll frame a response is generated automatically (rr-poll t rr-response, i-poll with first byte not axh t i-response). non-auto-mode, transparent mode 0,1: xtf the transmission of the xfifo contents is started, an opening flag sequence is automatically added. extended transparent mode 0,1: xtf the transmission of the xfifo contents is started, no opening flag sequence is added. xdd transmit direct data (auto-mode only!). prepares the transmission of an i-frame ("direct data") in auto-mode. the actual transmission starts, when the sacco receives a rr-frame with poll- bit set. upon the reception of an i-frame with poll-bit set, an i-response is issued. xme transmit message end (interrupt mode only). a '1' indicate that the data block written last to the xfifo completes the actual frame. the sacco can terminate the transmission operation properly by appending the crc and the closing flag sequence to the data. xme is used only in combination with xpd/xtf or xdd. note: when using the dma-mode xme must not be used. xres transmit reset. the contents of the xfifo is deleted and idle is transmitted. this command can be used by the cpu to abort a frame currently in transmission. after setting xres a xpr-interrupt is generated in every case.
peb 20550 pef 20550 detailed register description semiconductor group 170 01.96 4.7.7 mode register (mode) access in demultiplexed m p-interface mode: read/write address: (ch-a/ch-b): 22 h /62 h access in multiplexed m p-interface mode: read/write address: (ch-a/ch-b): 44 h /c4 h reset value: 00 h mds1..0 mode select. the operating mode of the hdlc-controller is selected. 00auto-mode 01non-auto-mode 10transparent mode (d-channel arbiter) 11extended transparent mode adm address mode. the meaning of this bit varies depending on the selected operating mode: auto-mode / non-auto mode defines the length of the hdlc-address field. 08-bit address field, 116-bit address field. transparent mode 0no address recognition: transparent mode 0 (d-channel arbiter) 1high byte address recognition: transparent mode 1 extended transparent mode 0receive data in ral1: extended transparent mode 0 1receive data in rfifo and ral1: extended transparent mode 1 note: in extended transparent mode 0 and 1 the bit mode:rac must be reset to enable fully transparent reception. cft continuous frame transmission. 1when cft is set the xpr-interrupt is generated immediately after the cpu accessible part of xfifo is copied into the transmitter section. 0otherwise the xpr-interrupt is delayed until the transmission is completed (d-channel arbiter). bit 7 bit 0 mds1 mds0 adm cft rac 0 0 tlp
peb 20550 pef 20550 detailed register description semiconductor group 171 01.96 rac receiver active. via rac the hdlc-receiver can be activated/deactivated. 0hdlc-receiver inactive 1hdlc-receiver active in extended transparent mode 0 and 1 rac must be reset (hdlc-receiver disabled) to enable fully transparent reception. tlp test loop. when set input and output of the hdlc-channel are internally connected. (transmitter channel a - receiver channel a transmitter channel b - receiver channel b) txda/b are active, rxda/b are disabled. 4.7.8 channel configuration register 1 (ccr1) access in demultiplexed m p-interface mode: read/write address: (ch-a/ch-b): 2f h /6f h access in multiplexed m p-interface mode: read/write address: (ch-a/ch-b): 5e h /de h reset value: 00 h pu power-down mode. 0power-down (standby), the internal clock is switched off. nevertheless, register read/write access is possible. 1power-up (active). sc1..0 serial port configuration 00point to point configuration, 01bus configuration, timing mode 1, data is output with the rising edge of the data clock on pin txda/b and evaluated 1/2 clock period later with the falling clock edge at pin cxda/b 11bus configuration, timing mode 2, data is output with the falling edge of the data clock and evaluated with the next falling clock edge. thus one complete clock period is available between data output and evaluation. ods output driver select. defines the function of the transmit data pin (txda/b). 0txda/b-pin open drain output 1txda/b-pin push-pull output bit 7 bit 0 pu sc1 sc0 ods itf cm2 cm1 cm0
peb 20550 pef 20550 detailed register description semiconductor group 172 01.96 up to version 1.2 when selecting a bus configuration only the open drain option must be selected. compared to the version 1.2 the version 1.3 provides new features: push-pull operation may be selected in bus configuration (up to version 1.2 only open drain): ? when active txda / txdb outputs serial data in push-pull-mode ? when inactive (interframe or inactive timeslots) txda / txdb outputs 1 note: w hen bus configuration with direct connection of multiple elics is used open drain option is still recommended. the push-pull option with bus configuration can only be used if an external tri-state buffer is placed between txda / txdb and the bus. due to the delay of tsca / tscb in this mode (see description of bits soc(0:1) in register ccr2 ( chapter 4.7.9 )) these signals cannot directly be used to enable this buffer. itf inter frame time fill. determines the "no data to send" state of the transmit data pin (txda/b). 0 continuous idle-sequences are output ('11111111' bit pattern). in a bus configuration (ccr1:sc0 = 1) itf is implicitly set to '0' (continuous '1's are transmitted). 1 continuous flag-sequences are output ('01111110' bit pattern). in a bus configuration (ccr1:sc0 = 1) itf is implicitly set to '0' (continuous '1's are transmitted). note: itf has to be set 0 if clock mode 3 is used. cm2 clock rate. 0single rate data clock 1double rate data clock cm1..0 clock mode. determines the mode in which the data clock is forwarded toward the receiver/transmitter. 00clock mode 0: external data clock, permanently enabled. 01clock mode 1: external data clock, gated by an enable strobe forwarded via pin hfs. 10clock mode 2: external data clock, programmable time slot assignment, frame synchronization pulse forwarded via pin hfs. 11clock mode 3: internal data clock derived from the cfi , gated by an internally generated enable strobe. note: clock mode 3 is only applicable for sacco-a in combination with the d-channel arbiter.
peb 20550 pef 20550 detailed register description semiconductor group 173 01.96 4.7.9 channel configuration register 2 (ccr2) access in demultiplexed m p-interface mode: read/write address: (ch-a/ch-b): 2c h /6c h access in multiplexed m p-interface mode: read/write address: (ch-a/ch-b): 58 h /d8 h reset value: 00 h soc1, the function of the tsca/b-pin can be defined programming soc1,soc0. soc0 bus configuration: 00the tsca/b output is activated only during the transmission of a frame delayed by one clock period. when transmission was stopped due to a collision tsca/b remains inactive. 10the tsca/b-output is always high (disabled). 11the tsca/b-output indicates the reception of a data frame (active low). point-to-point configuration: 0xthe tsca/b-output is activated during the transmission of a frame. 1xthe tsca/b-output is activated during the transmission of a frame and of inter frame timefill. xcs0, transmit/receive clock shift, bit 0 (only clock mode 2). rcs0 together with the bits xcs2, xcs1 (rcs2, rcs1) in tsax (tsar) the clock shift relative to the frame synchronization signal of the transmit (receive) time slot can be adjusted. a clock shift of 07 bits is programmable (clock mode 2 only!). note: in the clock modes 0,1 and 3 xcs0 and rcs0 has to be set to '0'. txde transmit data enable. 0the pin txda/b is disabled (in the state high impedance). 1the pin txda/b is enabled. depending on the programming of bit ccr1:ods it has a push pull or open drain characteristic. rds receive data sampling. 0 : serial data on rxda/b is sampled at the falling edge of hdca/b. 1 : serial data on rxda/b is sampled at the rising edge of hdca/b. note: with rds = 1 the sampling edge is shifted 1/2 clock phase forward. the data is internally still processed with the falling edge. rie receive frame start enable. when set, the rfs-interrupt in register exir_a/b is enabled. bit 7 bit 0 soc1 soc0 xcs0 rcs0 txde rds rie 0
peb 20550 pef 20550 detailed register description semiconductor group 174 01.96 4.7.10 receive length check register (rlcr) access in demultiplexed m p-interface mode: write address: (ch-a/ch-b): 2e h /6e h access in multiplexed m p-interface mode: write address: (ch-a/ch-b): 5c h /dc h reset value: 0xxxxxxx h rc receive check enable. a '1' enables, a '0' disables the receive frame length feature. rl6..0 receive length. the maximum receive length after which data reception is suspended can be programmed in rl6 .. 0. the maximum allowed receive frame length is (rl + 1) 32 bytes. a frame exceeding this length is treated as if it was aborted by the opposite station (rme-interrupt, rab-bit set (vfr in clock mode 3)). in this case the receive byte count (rbch, rbcl) is greater than the programmed receive length. bit 7 bit 0 rc rl6 rl5 rl4 rl3 rl2 rl1 rl0
peb 20550 pef 20550 detailed register description semiconductor group 175 01.96 4.7.11 status register (star) access in demultiplexed m p-interface mode: read address: (ch-a/ch-b): 21 h /61 h access in multiplexed m p-interface mode: read address: (ch-a/ch-b): 42 h /c2 h reset value: 48 h xdov transmit data overflow. a '1' indicates, that more than 32 bytes have been written into the xfifo. xfw xfifo write enable. a '1' indicates, that data can be written into the xfifo. note: xfw is only valid when cec = 0. arep/ auto repeat/transmission repeat. xrep read back value of the corresponding command bit cmdr:arep/xrep. rfr rfifo read enable. a '1' indicates, that valid data is in the rfifo and read access is enabled. rfr is set with the rme- or rpf-interrupt and reset when executing the rmc-command. rli receiver line inactive. neither flags as inter frame time fill nor frames are received via the receive line. note: significant in point-to-point configurations! cec command execution. when '0' no command is currently executed, the cmdr-register can be written to. when '1' a command (written previously to cmdr) is currently executed, no further command must temporarily be written to the cmdr-register. xac transmitter active. a '1' indicates, that the transmitter is currently active. in bus mode the transmitter is considered active also when it waits for bus access. afi additional frame indication. a '1' indicates, that one or more completely received frames or the last part of a frame are in the cpu inaccessible part of the rfifo. in combination with the bit star:rfr multiple frames can be read out of the rfifo without interrupt control. bit 7 bit 0 xdov xfw arep/ xrep rfr rli cec xac afi
peb 20550 pef 20550 detailed register description semiconductor group 176 01.96 4.7.12 receive status register (rsta) access in demultiplexed m p-interface mode: read address: (ch-a/ch-b): 27 h /67 h access in multiplexed m p-interface mode: read address: (ch-a/ch-b): 4e h /ce h reset value: xx h rsta always displays the momentary state of the receiver. because this state can differ from the last entry in the fifo it is reasonable to always use the status bytes in the fifo. vfr valid frame. indicates whether the received frame is valid ('1') or not ('0' invalid). a frame is invalid when C its length is not an integer multiple of 8 bits (n 8 bits), e.g. 25 bit, C its is to short, depending on the selected operation mode: auto-mode/non-auto mode (2-byte address field): 4 bytes auto-mode/non-auto mode (1-byte address field): 3 bytes transparent mode 1: 3 bytes transparent mode 0: 2 bytes C a frame was aborted (note: vfr can also be set when a frame was aborted) note: shorter frames are not reported. rdo receive data overflow. a '1' indicates, that a rfifo-overflow has occurred within the actual frame. crc crc-compare check. 0: crc check failed, received frame contains errors. 1: crc check o.k., received frame is error free. rab receive message aborted. when '1' the received frame was aborted from the transmitting station. according to the hdlc-protocol, this frame must be discarded by the cpu. bit 7 bit 0 vfr rdo crc rab ha1 ha0 c/r la
peb 20550 pef 20550 detailed register description semiconductor group 177 01.96 ha1..0 high byte address compare. in operating modes which provide high byte address recognition, the sacco compares the high byte of a 2-byte address with the contents of two individual programmable registers (rah1, rah2) and the fixed values feh and fch (group address). depending on the result of the comparison, the following bit combinations are possible: 10rah1 has been recognized. 00rah2 has been recognized. 01group address has been recognized. note: if rah1, rah2 contain the identical value, the combination 00 will be omitted. ha1 .. 0 is significant only in 2-byte address modes. c/r command/response; significant only, if 2-byte address mode has been selected. value of the c/r bit (bit of high address byte) in the received frame. la low byte address compare. the low byte address of a 2-byte address field or the single address byte of a 1-byte address field is compared with two programmable registers (ral1, ral2). depending on the result of the comparison la is set. 0ral2 has been recognized, 1ral1 has been recognized. in non-auto mode, according to the x.25 lap b-protocol, ral1/ral2 may be programmed to differ between command/response frames. note: the receive status byte is duplicated into the rfifo (clock mode 0-2) following the last byte of the corresponding frame. in clock mode 3 a modified receive status byte is copied into rfifo containing iom-port and channel address of the received frame. please refer to chapter 2.2.7.6 the rfifo in clock mode 3.
peb 20550 pef 20550 detailed register description semiconductor group 178 01.96 4.7.13 receive hdlc-control register (rhcr) access in demultiplexed m p-interface mode: read address: (ch-a/ch-b): 29 h /69 h access in multiplexed m p-interface mode: read address: (ch-a/ch-b): 52 h /d2 h reset value: xx h rhcr7..0 receive hdlc-control register. the contents of the rhcr depends on the selected operating mode. auto-mode (1- or 2-byte address field): i-frame compressed control field (bit 7-4: bit 7-4 of pbc-command, bit 3-0: bit 3-0 of hdlc-control field) else hdlc-control field note: rr-frames and i-frames with the first byte = axh (pbccommand "transmit prepared data") are handled automatically and are not transferred to the cpu (no interrupt is issued). non-auto mode (1-byte address field): 2nd byte after flag non-auto mode (2-byte address field): 3rd byte after flag transparent mode 1: 3nd byte after flag transparent mode 0: 2nd byte after flag note: the value in rhcr corresponds to the last received frame. 4.7.14 transmit address byte 1 (xad1) access in demultiplexed m p-interface mode: write address: (ch-a/ch-b): 24 h /64 h access in multiplexed m p-interface mode: write address: (ch-a/ch-b): 48 h /c8 h reset value: xx h xad17..10 transmit address byte 1. the value stored in xad1 is included automatically as the address byte (high address byte in case of 2-byte address field) of all frames transmitted in auto mode. using a 2 byte address field, xad11 and xad10 have to be set to '0'. bit 7 bit 0 rhcr7 rhcr6 rhcr5 rhcr4 rhcr3 rhcr2 rhcr1 rhcr0 bit 7 bit 0 xad17 xad16 xad15 xad14 xad13 xad12 xad11 xad10
peb 20550 pef 20550 detailed register description semiconductor group 179 01.96 4.7.15 transmit address byte 2 (xad2) access in demultiplexed m p-interface mode: write address: (ch-a/ch-b): 25 h /65 h access in multiplexed m p-interface mode: write address: (ch-a/ch-b): 4a h /ca h reset value: xx h xad27..20 transmit address byte 2. the value stored in xad2 is included automatically as the low address byte of all frames transmitted in auto-mode (2-byte address field only). 4.7.16 receive address byte low register 1 (ral1) access in demultiplexed m p-interface mode: read/write address: (ch-a/ch-b): 28 h /68 h access in multiplexed m p-interface mode: read/write address: (ch-a/ch-b): 50 h /d0 h reset value: xx h ral17..10 receive address byte low register 1. the general function (read/write) and the meaning or contents of this register depends on the selected operating mode: auto-mode, non-auto mode (address recognition) - write only: compare value 1, address recognition (low byte in case of 2-byte address field). transparent mode 1 (high byte address recognition) - read only: ral1 contains the byte following the high byte of the address in the received frame (i.e. the second byte after the opening flag). transparent mode 0 (no address recognition) - read only: contains the first byte after the opening flag (first byte of the received frame). extended transparent mode 0,1 - read only: ral1 contains the actual data byte currently assembled at the rxd-pin by passing the hdlc-receiver (fully transparent reception without hdlc-framing). note: in auto-mode and non-auto mode the read back of the programmed value is inverted. bit 7 bit 0 xad27 xad26 xad25 xad24 xad23 xad22 xad21 xad20 bit 7 bit 0 ral17 ral16 ral15 ral14 ral13 ral12 ral11 ral10
peb 20550 pef 20550 detailed register description semiconductor group 180 01.96 4.7.17 receive address byte low register 2 (ral2) access in demultiplexed m p-interface mode: write address: (ch-a/ch-b): 29 h /69 h access in multiplexed m p-interface mode: write address: (ch-a/ch-b): 52 h /d2 h reset value: xx h ral27..20 receive address byte low register 1. auto-mode, non-auto mode (address recognition): compare value 2, address recognition (low byte in case of 2-byte address field). note: normally used for broadcast address. 4.7.18 receive address byte high register 1 (rah1) access in demultiplexed m p-interface mode: write address: (ch-a/ch-b): 26 h /66 h access in multiplexed m p-interface mode: write address: (ch-a/ch-b): 4c h /cc h reset value: xx h ral17..12 receiver address byte high register 1. auto-mode, non-auto mode transparent mode 1, (2-byte address field). compare value 1, high byte address recognition. note: when a 1-byte address field is used in non-auto or auto-mode, rah1 must be set to 00 h . bit 7 bit 0 ral27 ral26 ral25 ral24 ral23 ral22 ral21 ral20 bit 7 bit 0 rah17 rah16 rah15 rah14 rah13 rah12 0 0
peb 20550 pef 20550 detailed register description semiconductor group 181 01.96 4.7.19 receive address byte high register 2 (rah2) access in demultiplexed m p-interface mode: write address: (ch-a/ch-b): 27 h /67 h access in multiplexed m p-interface mode: write address: (ch-a/ch-b): 4e h /ce h reset value: xx h ral27..22 receiver address byte high register 2. auto-mode, non-auto mode transparent mode 1, (2-byte address field). compare value 2, high byte address recognition. note: when a 1-byte address field is used in non-auto or auto-mode, rah2 must be set to 00 h . 4.7.20 receive byte count low (rbcl) access in demultiplexed m p-interface mode: read address: (ch-a/ch-b): 25 h /65 h access in multiplexed m p-interface mode: read address: (ch-a/ch-b): 4a h /ca h reset value: 00 h rbc7..0 receive byte count. together with rbch (bits rbc11 - rbc8), the length of the actual received frame (04095 bytes) can be determined. these registers must be read by the cpu following a rme interrupt. bit 7 bit 0 rah27 rah26 rah25 rah24 rah23 rah22 0 0 bit 7 bit 0 rbc7 rbc6 rbc5 rbc4 rbc3 rbc2 rbc1 rbc0
peb 20550 pef 20550 detailed register description semiconductor group 182 01.96 4.7.21 receive byte count high (rbch) access in demultiplexed m p-interface mode: read address: (ch-a/ch-b): 2d h /6d h access in multiplexed m p-interface mode: read address: (ch-a/ch-b): 5a h /da h reset value: 000xxxxx h dma dma-mode status indication. read back value representing the dma-bit programmed in register xbch. ov counter overflow. a '1' indicates that more than 4095 bytes were received. the received frame exceeded the byte count in rbc11rbc0. rbc11..8 receive byte count high. together with rbcl (bits rbc7rbc0) the length of the received frame can be determined. 4.7.22 transmit byte count low (xbcl) access in demultiplexed m p-interface mode: write address: (ch-a/ch-b): 2a h /6a h access in multiplexed m p-interface mode: write address: (ch-a/ch-b): 54 h /d4 h reset value: xx h xbc7..0 together with xbch (bits xbc11xbc8) this register is used in dma- mode to program the length of the next frame to be transmitted (14096 bytes). the number of transmitted bytes is xbc + 1. consequently the sacco can request the correct number of dma-cycles after a xdd/xtf- or xdd-command. bit 7 bit 0 dma 0 0 ov rbc11 rbc10 rbc9 rbc8 bit 7 bit 0 xbc7 xbc6 xbc5 xbc4 xbc3 xbc2 xbc1 xbc0
peb 20550 pef 20550 detailed register description semiconductor group 183 01.96 4.7.23 transmit byte count high (xbch) access in demultiplexed m p-interface mode: write address: (ch-a/ch-b): 2d h /6d h access in multiplexed m p-interface mode: write address: (ch-a/ch-b): 5a h /da h reset value: 0000xxxx dma dma-mode. selects the data transfer mode between the sacco fifos and the system memory: 0interrupt controlled data transfer (interrupt mode). 1dma controlled data transfer (dma-mode). xc transmit continuously. when xc is set the sacco continuously requests for transmit data ignoring the transmit byte count programmed in register xbch and xbcl. note: only valid in dma-mode. xbc11..8 transmit byte count high. together with xbc7xbc0 the length of the next frame to be transmitted in dma-mode is determined (14096 bytes). 4.7.24 time slot assignment register transmit (tsax) access in demultiplexed m p-interface mode: write address: (ch-a/ch-b): 30 h /70 h access in multiplexed m p-interface mode: write address: (ch-a/ch-b): 60 h /e0 h reset value: xx h tsnx5..0 time slot number transmit. selects one of up to 64 time slots (00 h -3f h ) in which data is transmitted in clock mode 2. the number of bits per time slot is programmable in register xccr. xcs2..1 transmit clock shift bit2-1. together with xcs0 in register ccr2 the transmit clock shift can be adjusted in clock mode 2. bit 7 bit 0 dma 0 0 xc xbc11 xbc10 xbc9 xbc8 bit 7 bit 0 tsnx5 tsnx4 tsnx3 tsnx2 tsnx1 tsnx0 xcs2 xcs1
peb 20550 pef 20550 detailed register description semiconductor group 184 01.96 4.7.25 time slot assignment register receive (tsar) access in demultiplexed m p-interface mode: write address: (ch-a/ch-b): 31 h /71 h access in multiplexed m p-interface mode: write address: (ch-a/ch-b): 62 h /e2 h reset value: xx h tsnr5..0 time slot number receive. selects one of up to 64 time slots (00 h -3f h ) in which data is received in clock mode 2. the number of bits per time slot is programmable in register rccr. rcs2..1 receive clock shift bit2-1. together with rcs0 in register ccr2 the transmit clock shift can be adjusted in clock mode 2. 4.7.26 transmit channel capacity register (xccr) access in demultiplexed m p-interface mode: write address: (ch-a/ch-b): 32 h /72 h access in multiplexed m p-interface mode: write address: (ch-a/ch-b): 64 h /e4 h reset value: 00 h xbc7..0 transmit bit count. defines the number of bits to be transmitted in a time slot in clock mode 2 (number of bits per time slot = xbc + 1 (1256 bits/time slot)). note: in extended transparent mode the width of the time slot has to be n 8 bits. bit 7 bit 0 tsnr5 tsnr4 tsnr3 tsnr2 tsnr1 tsnr0 rcs2 rcs1 bit 7 bit 0 xbc7 xbc6 xbc5 xbc4 xbc3 xbc2 xbc1 xbc0
peb 20550 pef 20550 detailed register description semiconductor group 185 01.96 4.7.27 receive channel capacity register (rccr) access in demultiplexed m p-interface mode: write address: (ch-a/ch-b): 33 h /73 h access in multiplexed m p-interface mode: write address: (ch-a/ch-b): 66 h /e6 h reset value: 00 h rbc7..0 receive bit count. defines the number of bits to be received in a time slot in clock mode 2. number of bits per time slot = rbc + 1 (1256 bits/time slot). note: in extended transparent mode the width of the time slot has to be n 8 bits. 4.7.28 version status register (vstr) access in demultiplexed m p-interface mode: read address: (ch-a/ch-b): 2e h access in multiplexed m p-interface mode: read address: (ch-a/ch-b): 5c h reset value: 80 h vn3..0 sacco version number. 80 h version a1. 81 h ...version a2 (elic v1.3). bit 7 bit 0 rbc7 rbc6 rbc5 rbc4 rbc3 rbc2 rbc1 rbc0 bit 7 bit 0 1 0 0 0 vn3 vn2 vn1 vn0
peb 20550 pef 20550 detailed register description semiconductor group 186 01.96 4.8 d-channel arbiter 4.8.1 arbiter mode register (amo) access in demultiplexed m p-interface mode: read/write address: 60 h access in multiplexed m p-interface mode: read/write address: c0 h reset value: 00 h fcc4..0 full selection counter. the value (fcc4..0 + 1) defines the number of iom-frames before the arbiter state machine changes from the state "limited selection" to the state "full selection", if the asm does not detect any '0' on the remaining serial input lines (d-channels). e.g. max. delay = 9 frames t amo:fcc4..0 = 01000. note: to avoid arbiter locking, either a) the state limited selection can be skipped by setting fcc4..0 = 00 h , or b) the fcc4..0 value must be greater than the value described in chapter 2.2.8.3 . sca suspend counter activation. 0the suspend counter controls the arbiter state machine. 1the suspend counter is disabled (e.g. for control by m p). cchh control channel handling. the control channel takes place: 0in the c/i channel 1in the mr bit (monitor channel receive bit) cchm control channel master activation. 0disables the control channel master. when disabled, all channels enabled in the dce0-3 registers are sent the "available" information even when the sacco-a is currently not available. 1enables the control channel master. during reception of d-channel data from a channel which has been enabled in the dce0-3 registers all other enabled channels are sent the "blocked" information from the control memory (cm). note: the d-channel arbiter can only be operated with framing control modes 3, 6 and 7. bit 7 bit 0 fcc4 fcc3 fcc2 fcc1 fcc0 sca cchh cchm
peb 20550 pef 20550 detailed register description semiconductor group 187 01.96 4.8.2 arbiter state register (astate) access in demultiplexed m p-interface mode: read address: 61 h access in multiplexed m p-interface mode: read address: c2 h reset value: 00 h as2..0 arbiter (receive channel selector) state: 000 : suspended 100 : full selection 011 : limited selection 001 : expect frame 010 : receive frame pad1..0 port address. the related frame was received on iom-port pad1..0 chad2..0 channel address. the related frame was received in iom-channel chad2 .. 0. 4.8.3 suspend counter value register (scv) access in demultiplexed m p-interface mode: read/write address: 62 h access in multiplexed m p-interface mode: read/write address: c4 h reset value: 00 h scv7..0 suspend counter value. the value (scv7 .. 0 + 1) 32 defines the number of d-bits which are analyzed in the state "expect frame" before the arbiter enters the state suspended state and an interrupt is issued. min.: 32 d-bits (16 frames), max: 8192 d-bits. bit 7 bit 0 as2 as1 as0 pad1 pad0 chad2 chad1 chad0 bit 7 bit 0 scv7 scv6 scv5 scv4 scv3 scv2 scv1 scv0
peb 20550 pef 20550 detailed register description semiconductor group 188 01.96 4.8.4 d-channel enable register iom-port 0 (dce0) access in demultiplexed m p-interface mode: read/write address: 63 h access in multiplexed m p-interface mode: read/write address: c6 h reset value: 00 h 4.8.5 d-channel enable register iom-port 1 (dce1) access in demultiplexed m p-interface mode: read/write address: 64 h access in multiplexed m p-interface mode: read/write address: c8 h reset value: 00 h 4.8.6 d-channel enable register iom-port 2 (dce2) access in demultiplexed m p-interface mode: read/write address: 65 h access in multiplexed m p-interface mode: read/write address: ca h reset value: 00 h bit 7 bit 0 dce07 dce06 dce05 dce04 dce03 dce02 dce01 dce00 bit 7 bit 0 dce17 dce16 dce15 dce14 dce13 dce12 dce11 dce10 bit 7 bit 0 dce27 dce26 dce25 dce24 dce23 dce22 dce21 dce20
peb 20550 pef 20550 detailed register description semiconductor group 189 01.96 4.8.7 d-channel enable register iom-port 3 (dce3) access in demultiplexed m p-interface mode: read/write address: 66 h access in multiplexed m p-interface mode: read/write address: cc h reset value: 00 h dcen7..0 d-channel enable bits channel 7-0, iom-port n. 0d-channel i on iom-port n is disabled for data reception. the control channel of a disabled d-channel is not manipulated by the control channel master. it passes the value stored in the epic-1 control memory (c/i or mr must = "blocked"). the disabling of a d-channel has an immediate effect also when the channel is active. in this case the transmitter (hdlc-controller in the subscriber terminal) is forced to abort the current frame. 1d-channel i on iom-port n is enabled for data reception. the control channel of an enabled d-channel is manipulated a) by the control channel master, if amo:cchm = 1, b) directly via dce, if amo:cchm = 0. 4.8.8 transmit d-channel address register (xdc) access in demultiplexed m p-interface mode: read/write address: 67 h access in multiplexed m p-interface mode: read/write address: ce h reset value: 00 h bct broadcast transmission, bct = 1 enables broadcast transmission. the transmitted frame is send to all channels enabled in the registers bcg0-3. pad1..0 port address, defines the transmit iom-port when bct = 0. chad2..0 channel address, defines the transmit iom-channel when bct = 0. bit 7 bit 0 dce37 dce36 dce35 dce34 dce33 dce32 dce31 dce30 bit 7 bit 0 0 0 bct pad1 pad0 chad2 chad1 chad0
peb 20550 pef 20550 detailed register description semiconductor group 190 01.96 4.8.9 broadcast group iom-port 0 (bcg0) access in demultiplexed m p-interface mode: read/write address: 68 h access in multiplexed mp-interface mode: read/write address: d0 h reset value: 00 h 4.8.10 broadcast group iom-port 1 (bcg1) access in demultiplexed m p-interface mode: read/write address: 69 h access in multiplexed m p-interface mode: read/write address: d2 h reset value: 00 h 4.8.11 broadcast group iom-port 2 (bcg2) access in demultiplexed m p-interface mode: read/write address: 6a h access in multiplexed m p-interface mode: read/write address: d4 h reset value: 00 h 4.8.12 broadcast group iom-port 3 (bcg3) access in demultiplexed m p-interface mode: read/write address: 6b h access in multiplexed m p-interface mode: read/write address: d6 h reset value: 00 h bcen7..0 broadcast enable bit channel 7-0, iom-port n. bceni: 0 d-channel i, iom-port n is disabled for broadcast transmission. 1 d-channel i, iom-port n is enabled for broadcast transmission. bit 7 bit 0 bce07 bce06 bce05 bce04 bce03 bce02 bce01 bce00 bit 7 bit 0 bce17 bce16 bce15 bce14 bce13 bce12 bce11 bce10 bit 7 bit 0 bce27 bce26 bce25 bce24 bce23 bce22 bce21 bce20 bit 7 bit 0 bce37 bce36 bce35 bce34 bce33 bce32 bce31 bce30
peb 20550 pef 20550 application hints semiconductor group 191 01.96 5 application hints 5.1 introduction 5.1.1 iom ? and sld functions iom ? (isdn oriented modular) interface the iom-2 standard defines an industry standard serial bus for interconnecting telecommunications ics. the standard covers line card, nt1, and terminal architectures for isdn, dect and analog loop applications. the iom-2 standard is a derivative of the iom-1 interface formerly designed by siemens to interconnect layer-1 and layer-2 devices within isdn terminals and on digital line cards. the iom ? -1 interface provides a symmetrical full-duplex communication link, containing user data, control/programming, and status channels for 1 isdn subscriber, i.e. it provides capacity for 2 b channels at 64 kbit/s and 1 d channel at 16 kbit/s. the iom-1 channel consists of four 8 bit timeslots which are serially transferred within an 8 khz frame. the first 2 timeslots carry the b1 and b2 channels, the third timeslot carries an 8 bit monitor channel and the fourth timeslot carries the 2 bit d channel, a 4 bit command/indication (c/i) channel plus 2 additional control bits (t and e bits). the monitor channel serves to exchange control and status information in a message oriented fashion of one byte per message. the c/i channel carries real-time status information between the line transceiver and the layer-2 device or the line card controller. status information transmitted over the c/i channel is static in the sense that the 4 bit word is repeatedly transmitted, every frame, as long as the status condition that it indicates is valid. the t bit is used by some u layer-1 devices as a transparent channel. the e bit is used in conjunction with the monitor channel to indicate the transfer of a monitor byte to the slave device. the various channels are time-multiplexed over a four wire serial interface. the data transfer rate at the iom-1 interface is 256 kbit/s, the data is clocked with a double rate clock of 512 khz (dcl) and the frame is synchronized by an 8 khz framing signal (fsc). because the iom-1 interface structure can handle only 1 isdn channel, which is too little for line card applications, the multiplexed iom ? -1 bus was developed. it multiplexes 8 individual iom-1 channels into the 8 khz frame. the data transfer rate is now increased to 2048 kbit/s, the data is clocked with a double rate clock of 4096 khz (dcl) and the frame is synchronized with an 8 khz framing signal (fsc). the bit timing and fsc position differs slightly from the 256 kbit/s iom-1 interface. the iom channel structure however is identical to the non-multiplexed iom-1 case. the iom ? -2 bus standard is an enhancement of both the iom-1 and multiplexed iom-1 standards. both the line card and terminal portions of the iom-2 standard utilize the same basic frame and clocking structure, but differ in the number and usage of the individual channels. data is clocked by a data clock (dcl) that operates at twice the data
peb 20550 pef 20550 application hints semiconductor group 192 01.96 rate. frames are delimited by an 8 khz frame synchronization signal (fsc). the bit timing and fsc position is identical to the non-multiplexed iom-1 case. the line card version of the iom ? -2 provides a connection path between line transceivers (isdn) or codecs (analog), and the line card controller, the epic or elic; the line card controller provides the connection to the switch backbone. the iom-2 bus time-multiplexes data, control, and status information for up to 8 isdn transceivers or up to 16 codec/filters over a single full-duplex interface. figure 58 shows the iom-2 frame structure for the line card. it consists of 8 individual and independent iom channels, each having a structure similar to the iom-1 channel structure. the main difference compared to iom-1 is the more powerful monitor channel performance. monitor messages of unlimited length can now be transferred at a variable speed, controlled by a handshake procedure using the mr and mx bits. the c/i channel can have a width of 4 bits for isdn applications or of 6 bits for analog signaling applications. figure 58 iom ? -2 frame structure for line card applications itd08037 fsc (8 khz) (4096 khz) dcl iom ch. 0 dd# (2048 kbit/s) (2048 kbit/s) 012345678 31 b1 channel b2 channel monitor channel control channel c/i d isdn: sig analog: time-slot b1 : 64 kbit/s channel b2 : 64 kbit/s channel d : 16 kbit/s channel c/i : command/indication channel sig : signaling channel mr : monitor handshake bit "receive" mx : monitor handshake bit "transmit" number rr iom ch. 1 r iom ch. 2 r r r r r 8 bits rx m m mm x r du# iom ch. 3 iom ch. 4 iom ch. 5 iom ch. 6 iom ch. 7 iom ch. 0 r iom ch. 1 r iom ch. 2 r iom ch. 3 r iom ch. 4 r iom ch. 5 r iom ch. 6 r iom ch. 7 r 8 bits 8 bits 8 bits
peb 20550 pef 20550 application hints semiconductor group 193 01.96 the terminal version of the iom ? -2 is a variation of the line card bus, designed for isdn terminal and nt1 applications. it consists of three iom channels, each containing four 8 bit timeslots. the resultant data transfer rate is therefore 768 kbit/s and the data is clocked with a 1536 khz double rate clock (dcl). the iom channel structure is similar to the line card case. the first channel is dedicated for controlling the layer-1 transceiver (monitor and c/i channels) and passing the user data (b and d channels) to the layer-1 transceiver. the second and third channels are used for communication between a controlling device and devices other than the layer-1 transceiver, or for transferring user data between data processing devices (ic channels). the c/i channel of the third iom channel is used for tic bus applications (d and c/i channel arbitration). the tic bus allows multiple layer-2 devices to individually gain access to the d and c/i channels located in the first iom channel. finally, for nt1 applications, it is also possible to operate the iom-2 interface at a data rate of 256 kbit/s (1 iom channel). this is sufficient for the simple back to back connection of layer-1 transceivers in network terminator (nt) and repeater (rp) applications. the following table summarizes the different operation modes and applications of the iom-1 and iom-2 standards (te = terminal equipment, nt = network terminator, lt = line terminator): the main application of the elic is on digital and analog line cards. the elic is therefore primarily designed to support the line card modes (2048 kbit/s) of the iom-2 standard. it can however be programmed to support all the above mentioned iom data rates and c/i and monitor processing schemes. however, it must be assured that the desired pcm to iom data rate ratio is feasible (refer to chapter 5.2.2.3 ). table 22 overview of iom ? applications and data rates mode applications data rate / clock rate iom-1 te, nt, lt 256 kbit/s / 512 khz multiplexed iom-1 lt 2048 kbit/s / 4096 khz iom-2 lt 2048 kbit/s / 4096 khz iom-2 te, nt 768 kbit/s / 1536 khz iom-2 nt 256 kbit/s / 512 khz
peb 20550 pef 20550 application hints semiconductor group 194 01.96 sld (subscriber line data) interface the sld bus is used by the elic to interface with the subscriber line devices. a serial interface port (sip) is used for the transfer of all digital voice and data, feature control and signaling information between the individual subscriber line devices, the pcm highways and the control backplane. the sld approach provides a common interface for one analog or digital component per line. the elic switches the pcm data transparently switched onto the pcm highways. there are three wires connecting each subscriber line device and the elic: two common clock signals shared among all devices, and a unique bidirectional data wire for each of the eight sip ports. the direction signal (fsc) is an 8 khz clock output from the elic (master) that serves as a frame synch to the subscriber line devices (slave) as well as a transfer indicator. the data is transferred at a 512 khz data rate, clocked by the subscriber clock (dcl). when fsc is high (first half of the 125 m s sld frame), four bytes of digital data are transmitted on the sld bus from the elic to the slave (downstream direction). during the second half of the frame when fsc is low, four bytes of data are transferred from the slave back to the elic (upstream direction). channel b1 and b2 are 64 kbit/s channels reserved for voice and data to be routed to and from the pcm highways. the third and seventh byte are used to transmit and receive control information for programming the slave devices (feature control channel). the last byte in each direction is reserved for signaling data. figure 59 sld frame structure itd08038 fsc (8 khz) (512 khz) dcl b1 sip ts 0 b2 fc sig b1 b2 fc sig (512 kbit/s) downstream sip output upstream sip input ts 1 ts 2 ts 3 ts 4 ts 5 ts 6 ts 7 b1 : 64 kbit/s channel b2 : 64 kbit/s channel fc : feature control channel (8 bit) sig : signaling channel (8 bit)
peb 20550 pef 20550 application hints semiconductor group 195 01.96 in contrast to other siemens telecom devices, the elic does not provide an iom mode or an sld mode that can be selected by programming a single mode bit. instead, the elic provides a configurable interface (cfi) that can be configured for a great variety of interfaces, including iom-1, multiplexed iom-1, iom-2 and sld interfaces. the characteristics of the different iom ? and sld interfaces can be divided into two groups ? timing characteristics and ? handling of special channels (c/i or signaling channel, monitor or feature control channel) the timing characteristics (data rate, clock rate, bit timing, etc. ) are programmed in the cfi registers (see chapter 5.2.2.2 ). the cfi data rate, for example, can be selected between 128 kbit/s and 8192 kbit/s. this covers the standard iom and sld data rates of 256, 512, 768 and 2048 kbit/s. the special channels are initialized on a per timeslot basis in the control memory (cm). this programming on a per timeslot basis allows a dedicated usage of each cfi port and timeslot: an application that requires only two iom-2 compatible layer-1 transceivers will also only occupy 8 cfi timeslots (2 iom channels) for that purpose. the remaining 24 timeslots can then be used for general switching applications or for the connection of non iom-2 compatible devices that require a special m p handling. the special channels can be divided into two groups ? monitor/feature control channels and ? control/signaling channels
peb 20550 pef 20550 application hints semiconductor group 196 01.96 the monitor/feature control handler can be adjusted to operate according to the C iom-1 protocol (up to 1 byte, no handshake), the C iom-2 protocol (any number of bytes, handshake using the mr and mx bits) and to the C sld protocol (up to 16 bytes in subsequent frames without handshake) the monitor/feature control handler is a dedicated unit that communicates only with one iom or sld channel at a time. an address register selects one out of 64 possible mf channels. a 16 byte bidirectional fifo (mffifo) provides intermediate storage for the data to be sent or received. the message transfer over the mf channel is always half-duplex, i.e. data can either be sent at a time or received at a time. it should be noted that if the iom-2 protocol is selected, the actual message length i.e. the number of bytes to be sent or received is unlimited and is not restricted by the mffifo size! if non handshake protocols (iom-1 and sld) are used, the elic must always be the master of the mf communication. example: the elic programs and reads back the coefficients of a sicofi (peb 2060) device. if the handshake protocol is used (iom-2), a balanced mf communication is also possible: since the mf handler cannot be pointed to all iom-2 channels at the same time, the elic has implemented a search function that looks for active monitor transmit handshake (mx) bits on all upstream iom-2 channels. if an active channel is found, the address is stored and an interrupt is generated. the mf handler can then be pointed to that particular channel and the message transfer can take place. example: the elic reads an eoc message out of an iecq (peb 2091) device. the control/signaling handler can be adjusted to handle the following types of channels: ? 4 bit c/i channel (iom-1 and digital iom-2) ? 6 bit c/i or signaling channel (analog iom-2) ? 8 bit signaling channel (sld)
peb 20550 pef 20550 application hints semiconductor group 197 01.96 in downstream direction , the m p can write the 4, 6 or 8 bit c/i or signaling value to be transmitted directly to the cfi timeslot i.e. to the control memory. this value will then be transmitted repeatedly in each frame until a new value is loaded. if the 4 bit c/i channel option is selected, the two d channel bits can either be tristated by the elic (decentral d channel handling scheme) or they can be switched transparently from any 2 bit sub-timeslot position at the pcm interface (central d channel handling scheme). in upstream direction , the m p can read the received 4, 6, or 8 bit c/i or signaling value directly from the cfi timeslot i.e. from the control memory. in addition the control/ signaling handler checks all received c/i and signaling channels for changes. upon a change: C an interrupt is generated, C the address of the involved cfi timeslot is stored in a 9 byte fifo (cififo) and C the new value is stored in the control memory. the cififo serves to buffer the address information in order to increase the m p latency time. the change detection mechanism is based on a single last look procedure for 4 bit c/i channels and on a double last look procedure for 6 and 8 bit c/i or signaling channels. the single last look period is fixed to 125 m s, whereas the double last look period is programmable from 125 m s to 32 ms. the last look period is programmed using the elic timer. with the single last look procedure, each c/i value change immediately leads to a valid change and thus to an interrupt. with the double last look procedure, a c/i or signaling value change must be detected two times at the sampling points of the last look interval before a valid change is recognized and an interrupt is generated. if the 4 bit c/i channel option is selected, the two d channel bits can either be ignored by the elic (decentral d channel handling scheme) or they can be switched transparently to any 2 bit sub-timeslot position at the pcm interface (central d channel handling scheme).
peb 20550 pef 20550 application hints semiconductor group 198 01.96 5.2 configuration of interfaces 5.2.1 pcm interface configuration 5.2.1.1 pcm interface signals the pcm interface signals are summarized in table 23. 5.2.1.2 pcm interface registers the characteristics at the pcm interface (timing, modes of operation, etc. ) are programmed in the 4 pcm interface registers and in the operation mode register omdr. the function of each bit is described in chapter 5.2.1.3 . for addresses, refer to chapter 4.1 . pcm mode register read/write reset value: 00 h table 23 signals at the pcm interface pin no. symbol i: input o: output function 63 65 67 69 txd0 txd1 txd2 txd3 o o o o transmit pcm interface data: serial data is sent at standard ttl or cmos levels (tristate drivers). these pins can be set to high impedance with a 2 bit resolution. 62 64 66 68 tsc0 tsc1 tsc2 tsc3 o o o o tristate control signals for the pcm transmit lines. these signals are low when the corresponding txd# outputs are valid. 61 60 59 58 rxd0 rxd1 rxd2 rxd3 i i i i receive pcm interface data: serial data is received at standard ttl or cmos levels. 70 pfs i pcm interface frame synchronization signal. 71 pdc i pcm interface data clock, single or double rate. bit 7 bit 0 pmod pmd1 pmd0 pcr psm ais1 ais0 aic1 aic0
peb 20550 pef 20550 application hints semiconductor group 199 01.96 pcm bit number register read/write reset value: ff h pcm offset downstream register read/write reset value: 00 h pcm offset upstream register read/write reset value: 00 h pcm clock shift register read/write reset value: 00 h operation mode register read/write reset value: 00 h 5.2.1.3 pcm interface characteristics in the following the pcm interface characteristics that can be programmed in the pcm interface registers are explained in more detail. pcm mode pmod: pmd1, pmd0 the pcm mode primarily defines the actual number of pcm highways that can be used for switching purposes (logical ports). 1, 2, or 4 logical pcm ports can be selected. since bit 7 bit 0 pbnr bnf7 bnf6 bnf5 bnf4 bnf3 bnf2 bnf1 bnf0 bit 7 bit 0 pofd ofd9 ofd8 ofd7 ofd6 ofd5 ofd4 ofd3 ofd2 bit 7 bit 0 pofu ofu9 ofu8 ofu7 ofu6 ofu5 ofu4 ofu3 ofu2 bit 7 bit 0 pcsr drcs ofd1 ofd0 dre adsro ofu1 ofu0 ure bit 7 bit 0 omdr oms1 oms0 psb ptl cos mfps csb rbs
peb 20550 pef 20550 application hints semiconductor group 200 01.96 the channel capacity of the elic is constant (128 channels per direction), the pcm mode also influences the maximum possible data rate. in each pcm mode a minimum data rate as well as a minimum data rate stepping are specified. it should also be noticed that there are some restrictions concerning the pcm to cfi data rate ratio which may affect some applications. these restrictions are described in chapter 5.2.2.3 . the table below summarizes the specific characteristics of each pcm mode (dr = pcm data rate): note: the label is used to specify a pcm port (logical port) when programming a switching function. it should not be confused with the physical port number which refers to actual hardware pins. the relationship between logical and physical port numbers is given in table 30 and is illustrated in figure 64 . pcm clock rate pmod:pcr the pcm interface is clocked via the pdc pin. if pcr is set to logical 0, the pdc frequency must be identical to the selected data rate (single clock operation). if pcr is set to logical 1, the pdc frequency must be twice the selected data rate (double clock operation). note that in pcm mode 2, only single clock rate operation is allowed. in pcm mode 0 for example, pcr can be set to 1 to operate at up to four 2048 kbit/s pcm highways with a pcm clock of 4096 khz. pcm bit number pbnr:bnf7 bnf0 the pcm data rate is determined by the clock frequency applied to the pdc pin and the clock rate selected by pmod:pcr. the number of bits which constitute a pcm frame can be derived from this data rate by dividing by 8000 (8 khz frame structure). if the pcm interface is for example operated at 2048 kbit/s, the frame would consist of 256 bits or 32 timeslots. table 24 operation modes at the pcm interface pmd1 pmd0 pcm mode number (label) of logical ports data rate [kbit/s] data rate stepping [kbit/s] pdc frequency (clock rate) min. max. 0 0 1 0 1 0 0 1 2 4 (0 3) 2 (0 1) 1 256 512 1024 2048 4096 8192 256 512 1024 dr, 2 dr dr, 2 dr dr 1 1 3 2 (0 1) 512 4096 512 dr, 2 dr
peb 20550 pef 20550 application hints semiconductor group 201 01.96 note: there is a mode dependent restriction on the possible number of bits per frame bpf: also refer to table 25 . this number of bits must be programmed to pbnr:bnf7 0 as indicated in table 26 . the externally applied frame synchronization pulse pfs resets the internal pcm timeslot and bit counters. the value programmed to pbnr is internally used to reset the pcm timeslot and bit counters so that these counters always count modulo the actual number of bits per frame even in the absence of the external pfs pulse. additionally, the pfs period is internally checked against the pbnr value. the result of this comparison is displayed in the pcm synchronization status bit (star:pss). also, refer to chapter 5.8.3 . examples in pcm mode 0 a pcm frame consisting of 32 timeslots would require a setting of pbnr = 32 8C1=255 d =ff h . in pcm mode 1 a pcm frame consisting of 24 timeslots would require a setting of pbnr = (24 8C2)/2=95 d =5f h . in pcm mode 2 a pcm frame consisting of 64 timeslots would require a setting of pbnr = (64 8C4)/4=127 d =7f h . table 25 pcm mode possible values for bnf 0 1, 3 2 bpf must be modulo 32 bpf must be modulo 64 bpf must be modulo 128 table 26 formulas to calculate the pbnr value pcm mode pbnr:bnf7 0(hex) 0 1, 3 2 bpf7 0 = bpf C 1 bpf7 0 = (bpf C 2)/2 bpf7 0 = (bpf C 4)/4
peb 20550 pef 20550 application hints semiconductor group 202 01.96 pcm synchronization mode pmod:psm the pcm interface is synchronized via the pfs signal. a transition from low to high of pfs synchronizes the pcm frame. it should be noted that the rising pfs edge does not directly synchronize the frame, it is instead first internally sampled with the pdc clock: if psm is set to logical 0, the pfs signal is sampled with the falling clock edge of pdc, if it is set to logical 1, the pfs signal is sampled with the rising clock edge of pdc. psm should be selected such that the pdc signal detects stable low and high levels of the pfs signal, meeting the set-up ( t fs ) and hold ( t fh ) times with respect to the programmed pdc clock edge. in other words, if for example the rising pfs edge has some jitter with respect to the rising pdc edge, the falling pdc edge should be taken for the evaluation. the high phase of the pfs pulse may be of arbitrary length, however it must be assured that it is sampled low at least once before the next framing pulse. the relationship between the pfs signal and the beginning of the pcm frame is given in figure 60 and figure 61 . pcm bit timing and bit shift pofd, pofu, pcsr the position of the pcm frame can be shifted relative to the framing source pfs in increments of bits by programming the p cm offset bits ofd9 0, ofu9 0, drcs, adsro in the pofd, pofu and pcsr. this shifting can be performed separately for up- and downstream directions and by up to a whole frame. additionally, the polarity of the pdc clock edge used for transmitting and sampling the data can be selected with the ure and dre bits in the pcsr register. the timeslot structure on the pcm interface is synchronized with the externally applied pfs pulse. the rising edge of pfs, after it has been sampled by the pdc signal, marks the first bit of the pcm frame. this first bit is referenced to as the bnd (bit number downstream) of the downstream and the bnu (bit number upstream) of the upstream frame. if pcsr:ure is set to 1, data is transmitted with the rising edge of pdc, if ure is set to 0, data is transmitted with the next following falling edge of pdc. if pcsr:dre is set to 0, data is sampled with the falling edge of pdc, if dre is set to 1, data is sampled with the next following rising edge of pdc. the relationship between the pfs, pdc signals and the pcm bit stream on rxd# and txd# is illustrated in figure 60 and figure 61 .
peb 20550 pef 20550 application hints semiconductor group 203 01.96 figure 60 pcm interface framing offset for pmod:psm = 0 itt08039 1st bit 2nd bit 3rd bit ... ... ... ... ... ... ... ... pfs pdc txd# txd# rxd# rxd# pmod psm = 0 0, = pcr pmod ure = 1 conditions: 0 = ure pcr = 0, 0, = pcr dre = 0 1 = dre pcr = 0, ... ... 1, = pcr dre = 1 0 = dre pcr = 1, 1, = pcr ure = 0 1 = ure pcr = 1, rxd# rxd# txd# txd# : : : pmod : pmod : pmod pmod : pmod : pmod : : pmod : pcsr pcsr : pcsr : pcsr : : pcsr : pcsr : pcsr pcsr : 1st bit 2nd bit 3rd bit 3rd bit 3rd bit 2nd bit 2nd bit 1st bit 1st bit 3rd bit 2nd bit 2nd bit 3rd bit 3rd bit 2nd bit 2nd bit 3rd bit 1st bit 1st bit 1st bit 1st bit
peb 20550 pef 20550 application hints semiconductor group 204 01.96 figure 61 pcm interface framing for pmod:psm = 1 the formulas given in table 27 and table 28 apply for calculating the values to be programmed to the offset registers (ofd, ofu) given the desired bit number (bnd, bnu) to be marked. bpf denotes the actual number of bits constituting a frame. table 27 formulas to calculate the pcm frame offset downstream (rxd#) pcm mode offset downstream, pofd, pcsr remarks 0 1, 3 2 ofd9 2 = (bnd C 17 + bpf) mod bpf ofd9 1 = (bnd C 33 + bpf) mod bpf ofd9 0 = (bnd C 65 + bpf) mod bpf pcsr:ofd1 0 = 0 pcsr:ofd0 = 0 C itt08040 ... ... ... ... ... ... ... ... pfs pdc txd# txd# rxd# rxd# conditions: ... ... rxd# rxd# txd# txd# ... : pcsr pcsr : pcsr : pcsr : : pcsr : pcsr : pcsr pcsr : pmod : : pmod : pmod : pmod pmod : pmod : pmod : : : 1, = pcr ure = 1 0 = ure pcr = 1, 1, = pcr dre = 0 1 = dre pcr = 1, 0, = pcr dre = 1 0 = dre pcr = 0, 0, = pcr ure = 0 1 = ure pmod pcr = 0, 1 = psm pmod 3rd bit 2nd bit 1st bit 1st bit 1st bit 1st bit 2nd bit 3rd bit 3rd bit 3rd bit 2nd bit 2nd bit 1st bit 2nd bit 3rd bit 3rd bit 2nd bit 1st bit 1st bit 2nd bit 3rd bit 3rd bit 2nd bit 1st bit
peb 20550 pef 20550 application hints semiconductor group 205 01.96 examples 1) in pcm mode 0, with a frame consisting of 32 timeslots, the following timing relationship between the framing signal and the data signals is required: figure 62 timing pcm frame offset for example 1 table 28 formulas to calculate the pcm frame offset upstream (txd#) pcm mode offset upstream, pofu, pcsr remarks 0 1, 3 2 ofu9 2 = (bnu + 23) mod bpf ofu9 1 = (bnu + 47) mod bpf ofu9 0 = (bnu + 95) mod bpf pcsr:ofu10=0 pcsr:ofu0 = 0 C itt08041 start of internal frame 0 1 pfs pdc txd# bnu pmod psm = 0 1 = ure pcsr offset and bit time-slot required 2 bit 6 bnd rxd# dre = 0 1 bit 7 3 bit 5 4 bit 4 5 bit 3 6 bit 2 7 bit 1 8 bit 0 910 time-slot 0 256 : : : pcsr
peb 20550 pef 20550 application hints semiconductor group 206 01.96 the pcm interface shall be clocked with a pdc having the same frequency as the data rate i.e. 2048 khz. since the rising edge of pfs occurs at the same time as the rising edge of pdc, it is recommended to select the falling pdc edge for sampling the pfs signal (pmod:psm0 = 0). in this case the 1st bit of internal framing structure (according to figure 62 ) will represent timeslot 0, bit 6 (2nd bit) of the external frame (according to figure 60 ). the values to be programmed to the pofd, pofd and pcsr can now be determined as follows: with bnd = bnu = 2 and bpf = 256: pofd = ofd9 2 = (bnd C 17 + bpf) mod bpf = (2 C 17 + 256) mod 256 = 241 d = f1 h pofu = ofu9 2 = (bnu + 23) mod bpf =(2+23) mod 256 =25 d =19 h with ure = 1 and dre = 0: pcsr = 01 h 2) in pcm mode 1, with a frame consisting of 48 timeslots, the following timing relationship between the framing signal and the data signals is required: figure 63 timing for pcm frame offset of example 2 itt08042 start of internal frame 0 1 pfs pdc txd# bnu bit 2 bit 1 bit 0 bit 3 bit 7 bit 6 bit 5 384 383 382 1 2 3 381 time-slot 47 time-slot 0 required time-slot/bit offset in upstream direction downstream offset in time-slot/bit required 5 4 123 bit 3 bit 4 bit 5 bit 6 bit 7 direction time-slot 0 bit 2 6 bnd rxd# pcsr : : : 1 = dre pcsr ure = 1 1 = psm pmod
peb 20550 pef 20550 application hints semiconductor group 207 01.96 the pcm interface shall be clocked with a pdc having twice the frequency of the data rate i.e. 6144 khz. since the rising edge of pfs occurs a little bit before the rising edge of pdc i.e. the set-up and hold times with respect to the rising pdc are met, it is possible to select the rising pdc edge for sampling the pfs signal (pmod:psm = 1). in this case the 1st bit of the internal framing structure (according to figure 63 ) will represent timeslot 47, bit 1 (383rd bit) in upstream and timeslot 0, bit 5 (3rd bit) in downstream direction of the external frame (according to figure 61 ). the values to be programmed to the pofd, pofd and pcsr can now be determined as follows: with bnd = 3, bnu = 383 and bpf = 384: ofd9 1 = (bnd C 33 + bpf) mod bpf = (3 C 33 + 384) mod 384 = 354 d = 1 0110 0010 b ofu9 1 = (bnu + 47) mod bpf =(383+47) mod 384 =46 d = 0001 0111 0 b pofd = 1011 0001 b =b1 h , pofu = 1000 1111 b =17 h with ure = 1 and dre = 1: pcsr = 0001 0001 b =11 h , pcm receive line selection pmod:ais1 ais0 the pcm transmit line of a given logical port (as it is used for programming the switching function) is always assigned to a dedicated physical transmit pin, e.g. in pcm mode 1, pin txd2 carries the pcm data of logical port 1. in receive direction however, an assignment between logical and physical ports can be made in pcm modes 1 and 2. this selection is programmed via the alternative input selection bits 1 and 0 (ais1, ais0) in the pmod register. in pcm mode 0, ais1 and ais0 should both be set to 0. in pcm mode 1, ais0 selects between receive lines rxd0 and rxd1 for logical port 0 and ais1 between the receive lines rxd2 and rxd3 for logical port 1. in pcm mode 2, ais1 selects between the receive lines rxd2 and rxd3, the setting of ais0 is dont care. in pcm mode 3, ais0 selects between receive lines rxd0 and rxd1 for logical port 0 and ais1 between the receive lines rxd2 and rxd3 for logical port 1. the state of the ais# bits is furthermore put out via the tsc# pins and can thus be used to control external circuits (drivers, relays ).
peb 20550 pef 20550 application hints semiconductor group 208 01.96 table 29 shows the function taken on by each of the pcm interface pins, depending on the pcm mode and the values programmed to ais1 and ais0. figure 64 shows the correlation between physical and logical pcm ports for pcm modes 0, 1, 2, 3: figure 64 correlation between physical and logical pcm ports table 29 pcm pin configuration pcm mode port 0port 1port 2port 3 rxd0 txd0 tsc0 rxd1 txd1 tsc1 rxd2 txd2 tsc2 rxd3 txd3 tsc3 0 in0 out0 tsc0 in1 out1 tsc1 in2 out2 tsc2 in3 out3 tsc3 1 in0 for ais0=1 out0 tsc0 in0 for ais0=0 high z ais0 in1 for ais1=1 out1 tsc1 in1 for ais1=0 high z ais1 2 C out tsc C high z ais0 in for ais1=1 undef. undef. in for ais1=0 high z ais1 3 in0 for ais0=1 out0 tsc0 in0 for ais0=0 out0 ais0 in1 for ais0=1 out1 tsc1 in1 for ais1=0 out1 ais1 itd08043 logical ports: 1 out ais1 pmod: 0 1 1 in r r elic pcm mode 0 logical ports: out0 physical pins: 0 in0 in1 out1 in2 out2 in3 out3 pins: physical r logical ports: logical ports: r physical pins: physical pins: tsc0 txd0 tsc0 rxd0 1 tsc tsc1 txd1 rxd1 txd2 tsc2 tsc2 rxd2 txd3 tsc3 3 tsc rxd3 rxd2 3 tsc rxd3 txd2 tsc1 tsc2 0 tsc 0 tsc 0 txd 1 rxd tsc1 0 rxd in0 1 0 pmod: ais0 out0 pmod: ais0 tsc1 3 rxd tsc3 2 rxd in 1 0 pmod: ais1 tsc tsc 0 out txd0 3 tsc ais1 pmod: 3 rxd 2 rxd in1 1 0 2 tsc 1 tsc 2 txd out1 txd3 ais0 pmod: 0 1 0 in rxd0 1 tsc rxd1 tsc0 tsc0 1 txd 0 out txd0 elic elic elic pcm mode 1 pcm mode 2 pcm mode 3
peb 20550 pef 20550 application hints semiconductor group 209 01.96 pcm input comparison pmod:aic1 aic0 if the pcm input comparison is enabled, the elic checks the contents of two pcm receive lines (physical ports) against each other for mismatches. (also refer to chapter 5.8.2 ). the comparison function is operational in all pcm modes, a redundant pcm line which can be switched over to by means of the pmod:ais bits is of course only available in pcm modes 1, 2 and 3. aic0 set to logical 1 enables the comparison function between rxd0 and rxd1. aic1 set to logical 1 enables the comparison function between rxd2 and rxd3. aic1, aic0 set to logical 0 disables the respective comparison function. pcm standby mode omdr:psb in standby mode (omdr:psb = 0), the pcm interface output pins txd0 3 are set to high impedance and those (tsc# ) pins which are actually used as tristate control signals are set to logical 1 (inactive). note that the internal operation of the elic is not affected in standby mode, i.e. the received pcm data is still written into the downstream data memory and may still be processed by the elic (switched to the cfi or to the m p, compared with other input line, etc.) in operational mode (omdr:psb = 1), the pcm output pins transmit the contents of the upstream data memory data field or may be set to high impedance via the data memory tristate field (refer to chapter 5.3.3.2 ).
peb 20550 pef 20550 application hints semiconductor group 210 01.96 pcm test loop omdr:ptl the pcm test loop function can be used for diagnostic purposes if desired. if however a simple cfi to cfi connection (cfi ? pcm ? cfi loop) shall be established, it is recommended to program the pcm loop in the control memory (refer to chapter 5.4.3.1 ). if omdr:ptl is set to logical 1, the test loop is enabled i.e. the physical transmit pins txd# are internally connected to the corresponding physical receive pins rxd#, such that data transmitted over txd# are internally looped back to rxd# and data externally received over rxd# are ignored. the txd# pins still output the contents of the upstream data memory according to the setting of the tristate field. note that this loop back function can only work if the upstream and downstream bit shifts match and if the port assignment (pmod:ais1 0) is such that a logical transmitter is looped back to a logical receiver (e.g. the ptl loop cannot work in pcm mode 2!). for normal operation omdr:ptl should be set to logical 0 (test loop disabled). figure 65 illustrates the effect of the ptl bit: figure 65 effect of the omdr:ptl bit its08044 from upstream txd# omdr : ptl elic r pcm interface 1 0 data memory to downstream data memory rxd#
peb 20550 pef 20550 application hints semiconductor group 211 01.96 5.2.2 configurable interface configuration 5.2.2.1 cfi interface signals the configurable interface signals are summarized in the table below: 5.2.2.2 cfi registers the characteristics at the configurable interface (timing, modes of operation, etc. ) are programmed in the 5 cfi interface registers and the operation mode register omdr. the function of each bit is described in chapter 5.2.2.3 . for addresses refer to chapter 4.1 . cfi mode register 1 read/write reset value: 00 h table 30 signals at the configurable interface pin no. symbol i: input o: output function 34 35 36 37 dd0/sip0 dd1/sip1 dd2/sip2 dd3/sip3 o/io o/io o/io o/io data downstream outputs in cfi modes 0, 1 and 2 (pcm and iom applications). bidirectional serial interface ports in cfi mode 3 (sld application). tristate or open drain output drivers selectable (omdr:cos). 29 30 32 33 du0/sip4 du1/sip5 du2/sip6 du3/sip7 i/io i/io i/io i/io data upstream inputs in cfi modes 0, 1 and 2 (pcm and iom applications). bidirectional serial interface ports in cfi mode 3 (sld application). tristate or open drain output drivers for sip lines selectable (omdr:cos). 27 fsc i or o frame synchronization input (cmd1:css = 1) or output (cmd1:css = 0). 28 dlc i or o data clock input (cmd1:css = 1) or output (cmd1:css = 0). bit 7 bit 0 cmd1 ccs csm csp1 csp0 cmd1 cmd0 cis1 cis0
peb 20550 pef 20550 application hints semiconductor group 212 01.96 cfi mode register 2 read/write reset value: 00 h cfi bit number register read/write reset value: ff h cfi timeslot adjustment register read/write reset value: 00 h cfi bit shift register read/write reset value: 00 h cfi bit subchannel register read/write reset value: 00 h operation mode register read/write reset value: 00 h bit 7 bit 0 cmd2 fc2 fc1 fc0 coc cxf crr cbn9 cbn8 bit 7 bit 0 cbnr cbn7 cbn6 cbn5 cbn4 cbn3 cbn2 cbn1 cbn0 bit 7 bit 0 ctar 0 tsn6 tsn5 tsn4 tsn3 tsn2 tsn1 tsn0 bit 7 bit 0 cbsr 0 cds2 cds1 cds0 cus3 cus2 cus1 cus0 bit 7 bit 0 cscr sc31 sc30 sc21 sc20 sc11 sc10 sc01 sc00 bit 7 bit 0 omdr oms1 oms0 psb ptl cos mfps csb rbs
peb 20550 pef 20550 application hints semiconductor group 213 01.96 5.2.2.3 cfi characteristics in the following the configurable interface characteristics that can be programmed in the cfi registers are explained in more detail. cfi mode cmd1:cmd1, cmd0 the cfi mode primarily defines the actual number of cfi ports that can be used for switching purposes (logical ports). 1, 2 or 4 duplex or 8 bidirectional logical cfi ports can be selected. since the channel capacity of the elic is constant (128 channels/direction), the cfi mode also influences the maximum possible data rate. in each cfi mode a reference clock (rcl) of a specific frequency is required. this clock may be derived from the pcm clock signal pdc (cmd1:css = 0) or from the dcl signal (cmd1:css = 1). also refer to figure 66 and figure 67 . table 31 states the specific characteristics of each cfi mode. (dr = cfi data rate, n = number of 8 bit timeslots in pcm frame, du = duplex port, bi = bidirectional port). note: the label is used to specify a cfi port when programming a switching function. it should not be confused with the physical port number which refers to actual hardware pins. the relationship between logical and physical port numbers is given in table 35 and is illustrated in figure 82 . table 31 modes at the configurable interface cmd1 cmd0 cfi mode number (label) of logical ports cfi data rate [kbit/s] min. required cfi dr [kbit/s] relative to pcm data rate necessary reference clock (rcl) dcl output frequencies cmd1: css = 0 min. max. 1 0 0 1 1 0 1 0 3 0 1 2 8 bi (0 7) 4 du (0 3) 2 du (0 1) 1 du 128 128 128 128 1024 2048 4096 8192 16n/3 32n/3 64n/3 64n/3 4 dr 2 dr dr 0.5 dr dr, 2 dr dr, 2 dr dr dr
peb 20550 pef 20550 application hints semiconductor group 214 01.96 important note it should be noticed that there are some restrictions concerning the pcm to cfi data rate ratio. if the cfi data rate is chosen higher than the pcm data rate, no restrictions apply. if however the cfi data rate is lower than the pcm data rate, a minimum cfi date rate relative to the pcm data rate must be maintained (refer also to examples below). another important restriction is, that the number of bits per cfi frame must always be modulo 16. examples if the pcm frame consists of 32 timeslots (2048 kbit/s), the minimum possible cfi data rate in cfi mode 0 is (32 32)/3 = 341.3 kbit/s or if rounded to an integer number of timeslots 344 kbit/s. it is thus not possible to have an iom-1 interface with 256 kbit/s together with a 2048 kbit/s pcm interface in cfi mode 0. if instead the pcm frame consists of 24 timeslots (1536 kbit/s), the iom-1 data rate of 256 kbit/s is feasible since (24 32)/3 = 256 kbit/s. cfi clock and framing signal source cmd1:css the pcm interface is always clocked and synchronized by the pdc and pfs input signals. the configurable interface however can be clocked and synchronized either by signals internally derived from pdc and pfs or it can be clocked and synchronized by the externally applied dcl and fsc input signals. if pdc and pfs are selected as clock and framing signal source (cmd1:css = 0), the cfi reference clock crcl is obtained out of pdc after division by 1, 1.5 or 2 according to the prescaler selection (cmd:csp1 0). the cfi frame structure is synchronized by the pfs input signal. the elic generates dcl and fsc as output signals which may be specified by cmd2:coc (dcl clock rate) and cmd2:fc2 0 (fsc pulse form). this mode should be selected whenever the required cfi data rate can be obtained out of the pcm clock source using the internal prescalers. an overview of the different possibilities to generate the pcm and cfi data and clock rates for cmd1:css = 0 is given in figure 66 .
peb 20550 pef 20550 application hints semiconductor group 215 01.96 figure 66 elic ? clock sources for the cfi and pcm interfaces if cmd1:css = 0 if dcl and fsc are selected as clock and framing signal source (cmd1:css = 1), the cfi reference clock crcl is obtained out of the dcl input signal after division by 1, 1.5 or 2 according to the prescaler selection (cmd1:csp1 0). the cfi frame structure is synchronized by the fsc input signal. note that although the frequency and phase of dcl and fsc may be chosen almost independently with respect to the frequency and phase of pdc and pfs, the cfi clock source must still be synchronous to the pcm interface clock source i.e. the two clock sources must always be derived from one master clock. this mode must be selected if it is impossible to derive the required cfi data rate from the pcm clock source. an overview of the different possibilities to generate the pcm and cfi data and clock rates for cmd1:css = 1 is given in figure 67 . its08045 3 0 1 2 cfi mode internal reference clock (rcl) cfi mode 2 1 0 3 cmd1 csp1, cmd2 : coc x2 * only cfi * modes 0 and 3 fc modes 0-7 cmd2 : fc2 ... 0 dcl fsc bit shift ctar cbsr : cds2...0 bit shift pofu pofd pcsr pmod : pcr pcm frame sync. pcm data rate cfi data rate cfi frame sync. pdc pfs elic r 2 2 4 2 2 1.5 :0 crcl c f i p c m m u x x u m x u m
peb 20550 pef 20550 application hints semiconductor group 216 01.96 figure 67 elic ? clock sources for the cfi and pcm interfaces if cmd1:css = 1 cfi clock source prescaler cmd1:csp1 0 the cfi clock source pdc (cmd1:css = 0) or dcl (cmd1:css = 1) can be divided by a factor of 1, 1.5 or 2 in order to obtain the cfi reference clock crcl (see table 32 ). note that in cfi mode 2, the frequency of rcl is only half the cfi data rate. table 32 prescaler divisors csp1 csp0 prescaler divisor 0 0 1 1 0 1 0 1 2 1.5 1 not allowed its08046 bit shift ctar cbsr : cds2...0 r elic cfi frame sync. cfi data rate pcm frame sync. pcm data rate pfs pdc dcl fsc 3 0 1 2 2 1 0 3 cfi mode cfi mode internal reference clock (rcl) pcsr pofd pofu bit shift 2 2 4 2 1.5 2 crcl cmd : csp1, 0 pmod : pcr m u x u x m c f i p c m
peb 20550 pef 20550 application hints semiconductor group 217 01.96 figure 68 shows the relationship between the dcl input and the generated rcl for the different prescaler divisors in case cmd1:css = 1: figure 68 clock signal timing for the different prescaler divisors if cmd1:css = 1 cfi clock output rate cmd2:coc this feature applies only if the configurable interface is clocked and synchronized via the pcm interface clock and framing signals (pdc, pfs), i.e. if cmd1:css = 0. in this case the elic delivers an output clock signal at pin dcl with a frequency identical to or double the selected cfi data rate: for cmd2:coc = 0, the frequency of dcl is identical to the cfi data rate (all cfi modes) for cmd2:coc = 1, the frequency of dcl is twice the cfi data rate (cfi modes 0 and 3 only!) itt08047 fsc cmd1 : csm = 1 fsc dcl conditions: rcl cfi modes 0, 1 and 3 rcl rcl rcl rcl rcl 0 = csm : cmd1 cfi mode 2 prescaler divisor 1.5 cmd1 : csp1... 0 = 01 00 = 0 ... csp1 : cmd1 prescaler divisor 2 10 = 0 csp1 : cmd1 prescaler divisor 1 ... cmd1 : css = 1 cfi modes 0, 1 and 3 cfi mode 2 cfi modes 0, 1 and 3 cfi mode 2
peb 20550 pef 20550 application hints semiconductor group 218 01.96 figure 69 shows the relationship between the pfs, pdc, rcl and dcl signals in the different cfi modes. figure 69 clock signal timing for the different prescaler divisors if cmd1:css = 0 itt08048 pfs pfs pdc conditions: rcl rcl dcl dcl dcl dcl dcl dcl rcl rcl rcl rcl dcl dcl dcl 1 = css : cmd1 prescaler divisor 2 cmd1 : csp1... 0 = 00 01 = 0 ... csp1 : cmd1 prescaler divisor 1.5 10 = 0 ... csp1 : cmd1 prescaler divisor 1 cfi mode 2 0, 1 and 3 cfi modes cmd1 : csm = 0 1 = csm : cmd1 / / pmod : psm = 1 0 = psm : pmod 0, cfi mode cfi modes 1 and 2 1 = coc : cmd2 cmd2 : coc = 0 cfi mode 0, 3, cfi mode 1 = coc : cmd2 cmd2 : coc = 0 cfi mode 3, 3, cfi mode 0 = coc : cmd2 cmd2 : coc = 1 cfi mode 3, 0, cfi mode 0 = coc : cmd2 cmd2 : coc = 1 1 and 2 cfi modes cfi mode 0, cfi modes 1 and 3 0, 2 cfi mode cfi mode 2 0, 1 and 3 cfi modes 0, cfi mode cfi modes 1 and 2 1 = coc : cmd2 cmd2 : coc = 0 cfi mode 0, 3, cfi mode 1 = coc : cmd2 cmd2 : coc = 0 cfi mode 3,
peb 20550 pef 20550 application hints semiconductor group 219 01.96 cfi framing signal output control cmd2:fc2 0 this feature applies only if the configurable interface is clocked and synchronized via the pcm interface clock and framing signals (pdc, pfs), i.e. if cmd1:css = 0. in this case the elic delivers an output framing signal at pin fsc with a programmable pulse width and position. note that the up- and downstream cfi frame position relative to the fsc output is not affected by the setting of the ctar and cbsr:cds2 0 register bits. table 33 summarizes the 7 possible fsc control (fc) modes: table 33 applications of the different framing control modes fc2 fc1 fc0 fc mode main applications notes 0 0 0 0 1 1 1 1 0 0 1 1 0 0 1 1 0 1 0 1 0 1 0 1 0 1 2 3 4 5 6 7 iom-1 multiplexed (burst) mode general purpose general purpose general purpose special sld application reserved iom-2, iom-1 or sld modes software timed multiplexed iom-2 applications sbc, ibc, iec-t 2 isac-s per sld port standard iom-2 setting; no superframes generated standard iom-2 setting; superframes generated
peb 20550 pef 20550 application hints semiconductor group 220 01.96 figure 70 and figure 71 show the position of the fsc pulse relative to the cfi frame: figure 70 position of the fsc signal for fc modes 0, 1, 2, 3 and 6 figure 71 position of the fsc signal for fc modes 4 and 6 itt08049 conditions: rcl dcl dcl fsc cfi mode 0; cfi modes 1, 2; 1 = coc : cmd2 dcl cfi frame last time-slot of a frame time-slot 0 cmd2 : coc = 0 fsc fsc fsc fsc 1 = coc : cmd2 cmd2 : coc = 0 cfi modes 3; cfi mode 0; cfi modes 3; coc = 0 cmd2 : fc2 = 011 ... 0 (fc mode 3) (fc mode 2) 0 ... 010 = fc2 : cmd2 (fc mode 0) 0 ... 000 = fc2 : cmd2 (fc mode 1) 0 ... 001 = fc2 : cmd2 (fc mode 6) 0 ... 110 = fc2 : cmd2 itt08050 0 1 2345 fsc cfi frame fsc rcl (fc mode 6) 110 = ... fc2 cmd2 : conditions: time-slot 0 0 : cmd2 fc2 ... = 100 (fc mode 4)
peb 20550 pef 20550 application hints semiconductor group 221 01.96 application examples of the different fc modes fc mode 0 fc mode 0 applies for iom-1 multiplexed mode applications, i.e. for iom-1 interfaces with 2048 kbit/s data rate. accommodated layer-1 devices: sbc (peb 2080), ibc (peb 2095), iec-t (peb 20901/20902), in iom-1 mux. mode, the frame is synchronized with a negative pulse with a duration of one dcl period which marks bit number 251. the bits are transmitted with the falling clock edge and received with the rising clock edge. required register setting: cmd1 = 0xxx0000 b , cmd2 = 1c h , cbnr = ff h , ctar = xx h , cbsr = x0 h . figure 72 shows the relationship between fsc, dcl, dd# and du#: figure 72 multiplexed iom ? -1 interface signals fc mode 1 fc mode 1 is similar to fc mode 0. the fsc pulse is shifted by half a rcl period to the right compared to fc mode 0. it can be used for general purposes. fc mode 2 fc mode 2 is similar to fc mode 3. the fsc pulse is shifted by half a rcl period to the left compared to fc mode 3. it can be used for general purposes. itt08051 fsc dcl dd# du# ts31, bit 4 bit 5 ts31, bit 4 ts31, ts31, bit 3 ts31, bit 2 ts31, bit 1 bit 0 ts31, bit 7 ts0, bit 3 ts31, bit 2 ts31, bit 1 ts31, bit 0 ts31, ts0, bit 7 bit 6 ts0, bit 5 ts0, ts0, bit 4 ts0, bit 6 bit 5 ts0, ts0, bit 4
peb 20550 pef 20550 application hints semiconductor group 222 01.96 fc mode 3 fc mode 3 can be used for iom-2 applications, but it should be noted that some iom-2 layer-1 transceivers will interpret an fsc pulse of only one dcl period as a superframe marker (e.g. sbcx peb 2081, iec-q peb 2091, ), and it is not allowed to provide a superframe marker in every frame. for these applications it is recommended to use either fc mode 6 or fc mode 7. fc mode 4 fc mode 4 applies for special sld applications like 2 isac-s devices connected to one sip line. usually each sip line carries the two 64 kbit/s b channels followed by a feature control and a signaling channel. the feature control and signaling channels however are not required for all applications. this is, for example, the case if a digital subscriber circuit (s- or u- layer-1 transceiver) is connected via an isdn communication controller (icc peb 2070) to the elic. the task of the icc is to handle the d-channel and to switch the b1 and b2 channels from the sld to the iom-1 interface. the capacity of such an sld line card can be doubled if the unused timeslots for the feature control and signaling channels are also used as 64 kbit/s b channels. this is possible if the additionally connected icc (or isac-s) is synchronized with an fsc that is delayed by 2 timeslots i.e. the rising fsc edge is at the beginning of timeslot 2 instead of 0. the cfi timeslots 2, 3, 6 and 7 can then be programmed as normal b channels within the elic instead of being programmed as feature control and signaling channels. fc mode 6 this is the most often used type of fsc signal, because it covers the standard iom-1, iom-2 and sld applications. the rising edge of fsc marks timeslot 0, bit 7 of the cfi frame. the pulse width is 32 bits or 4 timeslots, i.e. the fsc is symmetrical (duty cycle 1:1) if the cfi frame consists of 8 timeslots (sld), and the fsc is high during the first iom-2 channel if the cfi frame consists of 32 timeslots (iom-2).
peb 20550 pef 20550 application hints semiconductor group 223 01.96 required register setting for iom-2: cmd1 = 0xxx0000 b , cmd2=d0 h , cbnr = ff h , ctar = xx h , cbsr = x0 h . figure 73 shows the relationship between fsc, dcl, dd# and du#: figure 73 iom ? -2 interface signals required register setting for sld: cmd1 = 0xxx1100 b , cmd2=d0 h , cbnr = 1f h , ctar = xx h , cbsr = x0 h . figure 74 shows the relationship between fsc, dcl and sip#: figure 74 sld interface signals itt08052 fsc dcl dd# du# ts31, bit 1 bit 0 ts31, ts0, bit 7 ts0, bit 7 ts0, bit 6 bit 5 ts0, bit 4 ts0, bit 3 ts0, bit 2 ts0, bit 1 ts0, bit 0 ts0, bit 0 ts31, ts0, bit 6 bit 5 ts0, bit 4 ts0, bit 3 ts0, bit 2 ts0, bit 1 ts0, bit 0 ts0, itt08053 fsc dcl sip# (out) ts0, bit 7 bit 4 ts7, rcl (in) sip# ts0, bit 6 ts0, bit 5 ts0, bit 4 ts0, bit 3 ts7, bit 3 bit 2 ts7, ts7, bit 1 bit 0 ts7,
peb 20550 pef 20550 application hints semiconductor group 224 01.96 fc mode 7 fc mode 7 is intended for iom-2 line cards to synchronize the multiframe structure among several s- or u k -interface transceivers. the layer-1 multiframe is reset by an fsc pulse having a width of at most, one dcl period. between the multiframe reset pulses, fsc pulses with a width of at least two dcl periods must be applied. devices which support this option are for example the octat-p (peb 2096-h), quat-s (peb 2084-h), sbcx (peb 2081), and the iec-q (peb 2091). fc mode 7 is a combination of fc modes 3 and 6. the timer register timr must be loaded with the required multiframe period (e.g. 5 ms for the s-interface or 12 ms for the u k -interface). when the timer is started with cmdr:st, a cyclic multiplexing process is started: whenever the timer expires, the frame signal has the pulse shape of fc mode 3 during one frame. for all the other frames the fsc signal has the pulse form of fc mode 6. after setting the cmdr:st bit, the inverted value of tval is loaded to the timer and the timer is incremented as soon as time slot 3 is passed (i.e. the fsc high phase is passed which lasts for 4 tss in fc mode 6) and then every 250 m s. when the timer expires (timer value = 0), an interrupt is generated immediately and the next fsc pulse has the shape of fc mode 3. figure 75 illustrates this behavior for a timer value of tval6 0 = 0000001. figure 75 fsc signal in fc mode 7 note: if the timer is stopped, the generated pulse form is the one of fc mode 6. timer value examples: required timer value for 5 ms period: timr:tval6 0 = 010011 b , e.g. timr = 13 h required timer value for 12 ms period: timr:tval6 0 = 101111 b , e.g timr = 2f h itt08054 nn+1 2 + n n+ 3 n+ 4 n+ 5 n+ 6 n+7 n+ 8 fc mode 7 fsc cfi frame timer loaded cmfr: st = 1 timer incremented expired timer incremented timer timer expired
peb 20550 pef 20550 application hints semiconductor group 225 01.96 cfi bit number cmd2, cbnr:cbn9 cbn0 the cfi data rate is determined by the reference clock rcl and the cfi mode selected by cmd1:cmd1 0. the number of bits which constitute a cfi frame can be derived from this data rate by division of 8000 (8 khz frame structure). if the cfi interface is for example operated at 2048 kbit/s, the frame would consists of 256 bits or 32 timeslots. this number of bits must be programmed to cmd2,cbnr:cbn9 0 as indicated below. note that the formula is valid for all cfi modes: cbn9 0 = number of bits C 1 examples a cfi frame consisting of 64 timeslots would require a setting of cbn9 0 = 64 8 C 1 = 511d = 01 1111 1111 b a cfi frame consisting of 48 timeslots would require a setting of cbn9 0 = 48 8 C 1 = 383d = 01 0111 1111 b cfi synchronization mode cmd1:csm the cfi interface can either be synchronized via the pfs pin (cmd1:css = 0), or via the fsc pin (cmd1:css = 1). a transition from low to high of either pfs or fsc synchronizes the cfi frame. the pfs (fsc) signal is internally sampled with the pdc (dcl) clock: if csm is set to logical 0, the pfs/fsc signal is sampled with the falling clock edge of pdc/dcl, if set to logical 1, the pfs/fsc signal is sampled with the rising clock edge of pdc/dcl. if cmd1:css is set to logical 0 (cfi clocks are internally derived from the pcm clocks), then cmd1:csm should be equal to pmod:psm. if cmd1:css is set to logical 1 (cfi clock signals are inputs), then cmd1:csm should be selected such that stable low and high phases of the fsc signal can be detected, meeting the set-up ( t fs ) and hold ( t fh ) times with respect to the programmed dcl clock edge. the high phase of the pfs/fsc pulse may be of arbitrary length, however it must be assured that it is sampled low at least once before the next framing pulse. the relationship between the framing and clock signals (pfs, fsc, pdc, dcl and rcl) for the different modes of operation is illustrated in figures 68 and 69 . note: in case dcl and fsc are selected as inputs (cmd1:css = 1), fsc must always be synchronized with the positive edge of dcl (cmd1:csm = 1). otherwise, an iom-2 compatible timing cannot be installed by means of a bit shift (when the negative edge is used for synchronization the internal frame start is delayed by one dcl clock. in double rate mode a bit shift of half a bit cannot be adjusted). anyway, if the rising edges of dcl and fsc do not meet the frame setup time t fs ,
peb 20550 pef 20550 application hints semiconductor group 226 01.96 additional hardware must delay the frame signal to enable a synchronization with the positive edge of dcl. figure 76 gives a suggestion of how to adapt the external timing. figure 76 circuit for delaying the framing signal at the cfi interface its08055 clk dout din sync 1st bit 2nd bit 3rd bit 4th bit 5th bit 5th bit 4th bit 3rd bit 2nd bit 1st bit fsc rising fsc edge marks 2nd bit of frame pr j clr k q qq q k clr j pr fsc dcl (du#) (dd#) sync clk din dout +5 v j-k flip-flop e.g. 74hc112 epic +5 v r
peb 20550 pef 20550 application hints semiconductor group 227 01.96 cfi bit timing and bit shift cmd2, ctar, cbsr the position of the cfi frame can be shifted relative to the cfi frame synchronization pulse using the cfi timeslot adjustment register ctar and the cfi bit shift register cbsr. this shifting can be performed simultaneously for up- and downstream directions with a one bit resolution by up to a whole frame. the upstream frame can additionally be shifted relative to the downstream frame by up to 15 bits. furthermore, the polarity of the clock edge (crcl) used for transmitting and sampling the data can be programmed in the cmd2 register. since the frame synchronization source of the configurable interface is either pfs (for cmd1:css = 0) or fsc (for cmd1:css = 1), the bit shift also refers to either the pfs or the fsc framing signal. note: if pfs/pdc is selected as cfi sync/clock source , the timeslot and bit shift values programmed to ctar and cbsr:cds2 0 affect both the cfi data lines and the cfi output framing signal fsc. the cfi frame together with the fsc signal can thus be shifted with respect to the pcm frame (pfs). the position of the cfi frame relative to the fsc output signal is not affected by these settings but is instead determined by the fsc framing control mode programmed to cmd2:fc2 0. the upstream cfi frame can, however, still be shifted relative to the downstream cfi frame with the cbsr:cus3 0 bits. if fsc/dcl is selected as cfi sync/clock source , the timeslot and bit shift functions affect the cfi frame with respect to the fsc framing input signal. in this case, the cfi frame start can be selected completely independently from the pcm frame start, it must only be assured that a phase relationship once established between the cfi and pcm frames is maintained all the time.
peb 20550 pef 20550 application hints semiconductor group 228 01.96 cfi timeslot adjustment and bit shift if cbsr = 20 h , the cfi framing signal (pfs if cmd1:css = 0 or fsc if cmd1:css = 1) marks bit 7 of the cfi timeslot called tsn according to the following formula: ctar:tsn6 0 = tsn + 2 e.g. ctar must be set to 02 h if the framing signal should mark timeslot 0, bit 7 (ts = 0). see examples. note that the value of tsn may not exceed the actual number of timeslots per cfi frame: tsn = [ C 2; i C 3], i = total number of timeslots per cfi frame from the zero offset bit position (cbsr = 20 h ) the cfi frame (downstream and upstream) can be shifted by up to 5 bits to the left (within the timeslot number tsn programmed in ctar) and by up to 2 bits to the right (within the previous timeslot n C 1) by programming the cbsr:cds2 0 bits: the bit shift programmed to cbsr:cds2 0 affects both the upstream and downstream frame position in the same way. if cbsr:cus3 0 = 0000, the upstream frame is aligned to the downstream frame. with cbsr:cus3 0 = 0001 to 1111, the upstream cfi frame can be shifted relative to the downstream frame by up to 15 bits to the left as indicated in figure 77 . table 34 cfi shift with respect to the frame synchronization signal cbsr:cds2 0 timeslot # marked bit # bit shift 000 001 010 011 100 101 110 111 tsn C 1 tsn C 1 tsn tsn tsn tsn tsn tsn 1 0 7 6 5 4 3 2 2 bits to the right 1 bit to the right no bit shift 1 bit to the left 2 bits to the left 3 bits to the left 4 bits to the left 5 bits to the left
peb 20550 pef 20550 application hints semiconductor group 229 01.96 figure 77 cfi upstream bit shifting itt08056 dd# conditions: du# du# du# du# du# du# du# du# du# du# du# du# du# du# du# du# cbsr: cus3...0 0000 0001 0010 0011 0100 0101 0110 0111 1000 1001 1010 1011 1100 1101 1110 1111 bit 7 ts0, ts1, 7 bit ts1, bit 7 ts0, bit 7 bit 6 ts0, ts0, bit 5 bit 4 ts0, ts0, bit 3 bit 2 ts0, bit 1 ts0, bit 0 ts0, bit 6 ts0, ts0, bit 5 ts0, bit 4 ts0, bit 3 ts0, bit 2 ts0, bit 1 ts0, bit 0 ts0, bit 6 ts0, bit 7 ts0, bit 5 ts0, bit 4 ts0, bit 3 ts0, bit 2 ts0, bit 1 ts0, bit 0 ts0, bit 6 ts0, bit 7 ts0, bit 5 ts0, bit 4 ts0, bit 3 ts0, bit 2 ts0, bit 1 ts0, bit 0 ts0, bit 6 ts0, bit 7 ts0, bit 5 ts0, bit 4 ts0, bit 3 ts0, bit 2 ts0, bit 1 ts0, bit 0 ts0, bit 6 ts0, bit 5 ts0, bit 4 ts0, bit 3 ts0, bit 2 ts0, bit 1 ts0, bit 0 ts0, bit 7 ts0, bit 5 ts0, bit 4 ts0, bit 3 ts0, bit 2 ts0, bit 1 ts0, bit 0 ts0, bit 6 ts0, bit 7 ts0, bit 4 ts0, bit 3 ts0, bit 2 ts0, bit 1 ts0, bit 0 ts0, bit 5 ts0, bit 6 ts0, bit 3 ts0, bit 2 ts0, bit 1 ts0, bit 0 ts0, bit 4 ts0, bit 5 ts0, bit 2 ts0, bit 1 ts0, bit 0 ts0, bit 3 ts0, bit 4 ts0, bit 1 ts0, bit 0 ts0, bit 2 ts0, bit 3 ts0, bit 0 ts0, bit 1 ts0, bit 2 ts0, bit 1 ts0, bit 0 ts0, bit 0 bit 6 ts1, ts1, bit 7 ts1, bit 6 ts1, bit 5 ts1, bit 4 ts1, bit 3 ts1, bit 2 ts1, bit 1 ts1, bit 7 ts1, bit 5 ts1, bit 6 ts1, bit 7 ts1, bit 4 ts1, bit 5 ts1, bit 6 ts1, bit 3 ts1, bit 2 ts1, bit 4 ts1, bit 5 ts1, bit 6 ts1, bit 7 ts1, bit 1 ts1, bit 3 ts1, bit 4 ts1, bit 5 ts1, bit 6 ts1, bit 7 ts1, bit 0 bit 2 ts1, ts1, bit 3 ts1, bit 4 ts1, bit 5 ts1, bit 6 ts1, bit 7 ts1, bit 0 ts1, bit 1 ts1, bit 2 ts1, bit 3 ts1, bit 0 ts1, bit 1 ts1, bit 0 ts1, bit 1 ts1, bit 0 ts1, bit 1 ts1, bit 0 ts1, bit 1 ts1, bit 0 ts1, bit 1 ts1, bit 0 ts1, bit 4 ts1, bit 5 ts1, bit 6 ts1, bit 7 ts1, bit 2 ts1, bit 3 ts1, bit 4 ts1, bit 5 ts1, bit 6 ts1, bit 7 ts1, bit 2 ts1, bit 3 ts1, bit 4 ts1, bit 5 ts1, bit 6 ts1, bit 7 ts1, bit 2 ts1, bit 3 ts1, bit 4 ts1, bit 5 ts1, bit 6 ts1, bit 7 ts1, bit 2 ts1, bit 3 ts1, bit 4 ts1, bit 5 ts1, bit 6 ts1, bit 5 ts1, bit 7 ts1, bit 2 ts1, bit 3 ts1, bit 4 ts1, bit 6 ts1, bit 1 ts1, bit 2 ts1, bit 3 ts1, bit 4 ts1, bit 5
peb 20550 pef 20550 application hints semiconductor group 230 01.96 cfi bit timing in cfi modes 0, 1 and 2, the rising or falling crcl clock edge can be selected for transmitting and sampling the data. in cfi mode 3, the rising or falling crcl clock edge can be selected for transmitting the data, the sampling of data however must always be done with the falling edge of crcl (crr = 0). if cmd2:cxf = 0 (cfi transmit on falling edge), the data is transmitted with the rising crcl edge, if cxf = 1, the data is transmitted with the next following falling edge of crcl. if cmd2:crr = 0 (cfi receive on rising edge), the data is sampled with the falling crcl edge, if crr = 1, the data is sampled with the next following rising edge of crcl. the relationship between the framing and clock signals and the cfi bit stream on dd# and du# for ctar = 02 h and cbsr = 20 h are illustrated in figure 78 and figure 79 .
peb 20550 pef 20550 application hints semiconductor group 231 01.96 figure 78 cfi bit timing with respect to the framing signal pfs (cmd1:css = 0) itt08057 pfs pfs rcl rcl ts0, bit 7 dd# dd# du# conditions: du# dd# ts0, bit 7 dd# du# du# sip# (out) (in) sip# fsc pmod : psm = 0 1 = psm : pmod cmd1 : csm = 1 0 = csm : cmd1 cfi modes 0, 1 and 3 cfi mode 2 0 = cxf : cmd2 cmd2 : cxf = 1 0 = crr : cmd2 cmd2 : crr = 1 1 = crr : cmd2 cmd2 : crr = 0 1 = cxf : cmd2 cmd2 : cxf = 0 0 = cxf : cmd2 cmd2 : cxf = 1 0 = crr : cmd2 cmd2 : fsc2 ... 0 011 = cfi modes 1 and 2 ctar h =02 cmd1: css = 0 ,20 = h cbsr (pfs is frame sync. source for both pcm and cfi) cfi mode 0 cbsr h =20 , 02 = h ctar cfi mode 3 cbsr h =20 , 02 = h ctar (out) sip# ts0, bit 6 bit 5 ts0, bit 4 ts0, bit 3 ts0, ts0, bit 7 ts0, bit 6 bit 5 ts0, bit 4 ts0, bit 7 ts0, ts0, bit 6 ts0, bit 5 ts0, bit 4 ts0, bit 3 ts0, bit 7 ts0, bit 6 ts0, bit 5 ts0, bit 4 ts0, bit 7 ts0, bit 6 ts0, bit 7 ts0, bit 6 ts0, bit 7 ts0, bit 6 ts0, bit 6 ts0, bit 5 ts0, bit 4 ts0, bit 3 bit 2 ts0, ts0, bit 1 ts0, bit 0 ts0, bit 7 ts0, bit 6 ts0, bit 5 ts0, bit 4 ts0, bit 3 ts0, bit 2 ts0, bit 1 ts0, bit 0 ts0, bit 7 ts0, bit 6 ts0, bit 5 ts0, bit 4 ts0, bit 3 ts0, bit 2 ts0, bit 1 ts0, bit 0 bit 7 ts0, ts0, bit 6 ts0, bit 5 ts0, bit 4 ts0, bit 3 ts0, bit 2 ts0, bit 1 ts0, bit 0
peb 20550 pef 20550 application hints semiconductor group 232 01.96 figure 79 cfi bit timing with respect to the framing signal fsc (cmd1:css = 1) itt08058 pfs pfs rcl rcl ts0, bit 7 dd# dd# du# conditions: du# dd# ts0, bit 7 dd# du# du# sip# (out) (in) sip# cmd1: csm = 1 0 = csm : cmd1 cfi modes 0, 1 and 3 cfi mode 2 0 = cxf : cmd2 cmd2 : cxf = 1 0 = crr : cmd2 cmd2 : crr = 1 1 = crr : cmd2 cmd2 : crr = 0 1 = cxf : cmd2 cmd2 : cxf = 0 0 = cxf : cmd2 cmd2 : cxf = 1 0 = crr : cmd2 cfi modes 1 and 2 ctar h =02 cmd1: css = 1 ,20 = h cbsr (fsc is frame sync. source for the cfi) cfi mode 0 cbsr h =20 , 02 = h ctar cfi mode 3 cbsr h =20 , 02 = h ctar (out) sip# ts0, bit 6 bit 5 ts0, bit 4 ts0, bit 3 ts0, bit 7 ts0, bit 6 ts0, bit 5 ts0, bit 4 ts0, ts0, bit 4 ts0, bit 5 ts0, bit 6 ts0, bit 7 ts0, bit 7 ts0, bit 6 ts0, bit 5 ts0, bit 4 ts0, bit 7 ts0, bit 6 ts0, bit 7 bit 6 ts0, ts0, bit 3 ts0, bit 7 ts0, bit 6 ts0, bit 0 ts0, bit 7 ts0, bit 0 ts0, bit 7 bit 7 ts0, ts0, bit 0 ts0, bit 0 bit 6 ts0, ts0, bit 5 ts0, bit 4 ts0, bit 3 ts0, bit 2 ts0, bit 1 ts0, bit 6 ts0, bit 5 ts0, bit 4 ts0, bit 3 ts0, bit 2 ts0, bit 1 ts0, bit 6 ts0, bit 5 ts0, bit 4 ts0, bit 3 ts0, bit 2 ts0, bit 1 ts0, bit 6 ts0, bit 5 ts0, bit 4 ts0, bit 3 ts0, bit 2 ts0, bit 1
peb 20550 pef 20550 application hints semiconductor group 233 01.96 examples 1) in cfi mode 0, with a frame consisting of 32 timeslots, the following timing relationship between the framing signal source pfs and the data signals is required: figure 80 timing signals for cfi bit shift example 1 the framing signal source pfs shall mark cfi timeslot 31, bit 1 in downstream direction and cfi timeslot 0, bit 5 in upstream direction. the data shall be transmitted and sampled with the falling crcl edge. the timing of the fsc and dcl output signals shall be as shown in figure 80 . the pfs signal is sampled with the rising pdc edge. the following cfi register values result: since pfs marks the downstream bit 1, the cbsr:cds bits must be set to 000, according to table 34 . if the cbsr:cds bits are set to 000, pfs marks the timeslot tsn C 1, according to table 34 . pfs shall mark cfi timeslot 31, i.e. tsn C 1 = 31, or tsn = 31 + 1 = (32) mod 32 =0 from this it follows that: ctar:tsn60=tsn+2=0+2=2 d = 0000010 b ; i.e. ctar = 02 h the upstream cfi frame shall be shifted by 4 bits to the left (ts31, bit 1 + 4 bits yields in ts0, bit 5). itt08059 0 1 pfs pdc/ dd# du# fsc dcl crcl :1 = csm cmd1 condition: cfi mode 0 pmod psm = 1 : cmd2 cxf = 1 : :0 = crr cmd2 cmd2 coc = 0 : : 011 = fc2 cmd2 ... 0 bit 7 ts0, ts31, bit 2 ts31, bit 1 ts31, bit 0 bit 6 ts0, bit 2 ts0, bit 3 ts0, bit 4 ts0, ts0, bit 5 bit 6 ts0,
peb 20550 pef 20550 application hints semiconductor group 234 01.96 the cbsr:cus bits must therefore be set to 0100, according to figure 77 . the complete value for cbsr is: cbsr = 04 h finally, the cmd2 register bits must be set to fc2 0 = 011, coc = 0, cxf = 1, crr = 0, cbn9 8 = 00, i.e. cmd2 = 68 h 2) in cfi mode 0, with a frame consisting of 32 timeslots, the following timing relationship between the framing signal source fsc and the data signals is required: figure 81 timing signals for cfi bit shift example 2 the framing signal source fsc shall mark cfi timeslot 4, bit 1 in downstream direction and cfi timeslot 0, bit 5 in upstream direction. the data shall be transmitted with the rising crcl edge and sampled with the rising crcl edge. the fsc signal shall be sampled with the rising dcl edge. the following cfi register values result: since fsc marks the downstream bit 1, the cbsr:cds bits must be set to 000, according to table 34 . if the cbsr:cds bits are set to 000, fsc marks the timeslot tsn C 1, according to table 34 . fsc shall mark cfi timeslot 4, i.e. tsn C 1 = 4, or tsn = 4 + 1 = 5 itt08060 start of internal frame 0 1 fsc dcl dd# bit 2 bit 1 bit 0 bit 3 bit 7 bit 6 bit 5 time-slot 4 required offset in upstream direction downstream offset in required bit 3 bit 4 bit 5 bit 6 bit 7 direction bit 2 du# cmd1 csm = 1 : cfi mode 0 cmd2 crr = 1 : :0 = cxf cmd2 ts0, bit 5 time-slot 5 time-slot 0 bit 1 ts4,
peb 20550 pef 20550 application hints semiconductor group 235 01.96 from this it follows that: ctar:tsn60=tsn+2=5+2=7 d = 0000111 b ; i.e. ctar = 07 h the upstream cfi frame shall be shifted by 28 bits to the right (ts 4, bit 1 - 28 bits yields in ts0, bit 5) since it is not possible to shift the upstream frame with respect to the downstream frame by more than 15 bits when using the cbsr:cus bits, the following trick must be used: the cbsr:cus bits are set to 0100 to shift the frame by 4 bits to the left. the remaining shift to the right of 28 + 4 = 32 bits (equivalent to 4 timeslots) can now be performed by renumbering the upstream cfi timeslots in the software. this results in an offset of 4 timeslots when addressing a cfi timeslot via the control memory (cm): if cfi timeslot n shall be switched (n refers to the external timeslot numbering), the cm must be written with the cfi address (n + 4) mod 32 . if for example the upstream cfi timeslot 0 of port 0 shall be switched to a pcm timeslot, the cm address 88 h (cfi p 0, ts4) must be used. the complete value for cbsr is: cbsr = 04 h finally the cmd2 register bits must be set to fc2 0 = xxx, coc = x, cxf = 0, crr = 1, cbn9 8 = 00, i.e.: cmd2 = 04 h cfi receive line selection cmd1:cis1 cis0 the cfi transmit line of a given logical port (as it is used for programming the switching function) is always assigned to a dedicated physical transmit pin, e.g. in cfi mode 1, pin dd1 carries the cfi data of logical port 1. in receive direction however, an assignment between logical and physical ports can be made in cfi modes 1 and 2. this selection is programmed via the alternative input selection bits 1 and 0 (cis1, cis0) in the cmd1 register. in cfi mode 0 and 3, cis1 and cis0 should both be set to 0. in cfi mode 1, cis0 selects between receive lines du0 and du2 for logical port 0 and cis1 between the receive lines du1 and du3 for logical port 1. in cfi mode 2, cis0 selects between the receive lines du0 and du2, cis1 should be set to 0.
peb 20550 pef 20550 application hints semiconductor group 236 01.96 table 35 shows the function taken over by each of the cfi interface pins, depending on the cfi mode and the values programmed to cis1 and cis0. figure 82 shows the correlation between physical and logical cfi ports in cfi modes 0, 1, 2 and 3: figure 82 correlation between physical and logical cfi ports table 35 cfi pin configuration cfi mode port 0 port 1 port 2 port 3 du0 dd0 du1 dd1 du2 dd2 du3 dd3 0 in0 out0 in1 out1 in2 out2 in3 out3 1in0 cis0 = 0 out0 in1 cis1 = 0 out1 in0 cis0 = 1 high z in1 cis1 = 1 high z 2in cis0 = 0 out C high z in cis0 = 1 high z C high z 3 i/o4 i/o0 i/o5 i/o1 i/o6 i/o2 i/o7 i/o3
peb 20550 pef 20550 application hints semiconductor group 237 01.96 cfi sub-timeslot position cscr if a timeslot assignment is programmed in the control memory (cm), the used control memory code defines the channel bandwidth and the subchannel position at the pcm interface (refer to chapter 5.4.2 ). the subchannel position at the configurable interface however is defined on a per port basis in the c onfigurable interface s ub c hannel r egister cscr. the subchannel control bits sc#1 sc#0 specify separately for each logical port the bit positions to be exchanged with the data memory (dm) when a connection with a channel bandwidth as defined by the cm code has been established: table 37 shows the effect of the different subchannel control bits sc#1 sc#0 on the cfi ports in each cfi mode: note: in cfi mode 1:sc21 = sc01; sc20 = sc00; sc31 = sc11; sc30 = sc10 in cfi mode 2:sc31 = sc21 = sc11 = sc01; sc30 = sc20 = sc10 = sc00 if for example at cfi port 1 a 16 kbit/s channel shall be switched to (or from) a cfi bit position 5 4 from (or to) any 2 bit sub-timeslot position at the pcm interface, a cm code defining a channel bandwidth of 16 kbit/s and defining the subchannel position at the pcm interface must be written to the cm code field of the involved 8 bit cfi timeslot (i.e. 0111, 0110, 0101 or 0100). in order to insert (or extract) bit positions 5 4 of the selected 8 bit cfi timeslot, sc11 sc10 have to be set to 01. once fixed to this value, all timeslot connections programmed on cfi port 1 are performed on bits 7 0 for table 36 subchannel positions at the cfi sc#1 sc#0 bit positions for cfi subchannels having a bandwidth of 64 kbit/s 32 kbit/s 16 kbit/s 0 0 1 1 0 1 0 1 70 70 70 70 74 30 74 30 76 54 32 10 table 37 correlation between the subchannel cntrol bits and the cfi ports sc#1 sc#0 cfi mode 01 2 3 sc01 sc11 sc21 sc31 sc00 sc10 sc20 sc30 port 0 port 1 port 2 port 3 port 0 port 1 see note see note port see note see note see note ports 0 and 4 ports 1 and 5 ports 2 and 6 ports 3 and 7
peb 20550 pef 20550 application hints semiconductor group 238 01.96 64 kbit/s channels, bits 3 0 for 32 kbit/s channels and bits 5 4 for 16 kbit/s channels. since for each cfi timeslot there is only one control memory location, only one subchannel may be mapped to each cfi timeslot. the remaining bits of such a partly unused cfi timeslot are inactive e.g. set to high impedance if omdr:cos = 0. note that if an odd numbered cfi timeslot is initialized as an iom channel with switched d channel, sc#1 sc#0 must be set to 00 because the d channel is located at bits 7 6. in this case the remaining bits can still be used for c/i and monitor channel applications (refer to chapter 5.5 ). for more detailed information on subchannel switching refer to chapter 5.4.2 . cfi standby mode omdr:csb in standby mode (omdr:csb = 0), the cfi output ports are set to high impedance and the clock signals dcl and fsc, if programmed as outputs (cmd1:css = 0), are switched off. note that the internal operation of the elic is not affected in standby mode, i.e. the received cfi data is still read in and may still be processed by the elic (switched to pcm or m p, etc.) in operational mode (omdr:csb = 1), the cfi output pins take over the function programmed in the control memory and dcl and fsc deliver clock and framing output signals (if cmd1:css = 0) as programmed in cmd1 and cmd2. cfi output driver selection omdr:cos the output drivers at the configurable interface (dd# or i/ o #) can be programmed as open drain or tristate drivers. if programmed as open drain drivers (omdr:cos = 1), external pull-up resistors (connected to v dd ) are required in order to pull the output line to a high level if a logical 1 is being transmitted. for unassigned channels (e.g. control memory code 0000) the elic transmits a logical 1. the maximum output current at a low voltage level of 0.45 v is 7 ma, pull-up resistors down to 680 w can thus be used. if programmed as tristate drivers (omdr:cos = 0), logical 0s and 1s are transmitted with push-pull output drivers, whereas unassigned channels are set to high impedance.
peb 20550 pef 20550 application hints semiconductor group 239 01.96 5.3 data and control memories 5.3.1 memory structure the elic memory is composed of the control memory (cm) and the data memory (dm) . their structure is shown in figure 83 . the control memory refers to the configurable interface (cfi) such that for each cfi timeslot and for each direction (upstream and downstream) there is a 4 bit code field and an 8 bit data field location. the code field defines the function of the corresponding cfi timeslot. a timeslot, may for example, be transparently switched through to the pcm interface (switched channel) or it may serve as monitor, feature control, command/indication or signaling channel in an iom or sld application (preprocessed channel) or it may be directly switched to the m p interface ( m p channel). the use of the data field depends on the function defined by the code field. if a cfi timeslot is defined as a switched channel, the data field is interpreted as a pointer to the data memory and defines therefore to which pcm timeslot the connection shall be made. for preprocessed channels, the data field serves as a buffer for the command/indication or signaling value. if a m p channel is programmed, the data field content is directly exchanged with the cfi timeslot. the data memory refers to the pcm interface such that for each upstream timeslot there is a 4 bit code field and an 8 bit data field location, whereas for each downstream timeslot there is only an 8 bit data field location. the data field locations buffer the pcm data transmitted and received over the pcm interface. the code field (tristate field) defines whether the upstream data field contents should be transmitted in the associated pcm timeslot or whether the timeslot should be switched to high impedance.
peb 20550 pef 20550 application hints semiconductor group 240 01.96 figure 83 elic ? memory structure 5.3.2 indirect register access the control and data memories must be accessed by the m p in order to initialize the cfi and pcm interfaces for the required functionality, to program timeslot assignments, to access the control/signaling channels (iom/sld), etc. this access is performed through indirect addressing using the memory access registers madr, maar, and macr . itd08062 code field data field control memory cfi frame 0 127 up- stream stream down- 127 0 code field data field 127 0 frame pcm up- stream 0 127 down- stream data memory
peb 20550 pef 20550 application hints semiconductor group 241 01.96 memory access data register read/write reset value: undefined the m emory a ccess d ata r egister madr contains the data to be transferred from or to a memory location. the meaning and the structure of this data depends on the kind of memory being accessed. if, for example, madr contains a pointer to a pcm timeslot, the data must be encoded according to figure 84 . if it contains a 4 bit c/i code the structure would for example be 11 c/i 11. for accesses to 4 bit code fields only the 4 least significant bits of madr are relevant. memory access address register read/write reset value: undefined the m emory a ccess a ddress r egister maar specifies the address of the memory access. this address encodes a cfi timeslot for control memory and a pcm timeslot for data memory accesses. bit 7 of maar (u/d bit) selects between upstream and downstream memory blocks. bits ma6 0 encode the cfi or pcm port and timeslot number according to figure 84 . memory access control register read/write reset value: undefined the m emory a ccess c ontrol r egister macr selects the type of memory (control or data memory), the type of field (data or code field) and the access mode (read or write) of the register access. when writing to the control memory code field, macr also contains the 4 bit code (cmc3 0) defining the function of the addressed cfi timeslot. bit 7 bit 0 madr md7 md6 md5 md4 md3 md2 md1 md0 bit 7 bit 0 maar u/d ma6 ma5 ma4 ma3 ma2 ma1 ma0 bit 7 bit 0 macr rws moc3 moc2 moc1 moc3/ cmc3 cmc2 cmc1 cmc0
peb 20550 pef 20550 application hints semiconductor group 242 01.96 figure 84 timeslot encoding for the different pcm and cfi modes itd08063 u/d port# (0-3) cfi mode 0 pcm mode 0 4 duplex ports 32 tume-slots/port 64 time-slots/port 2 duplex ports u/d u/d 2 duplex ports 64 time-slots/port 128 time-slots/port 1 duplex port u/d u/d 16 time-slots/port 8 bidirectional ports u/d : (1) / downstream (0) port# (0-1) port# (0-1) port# (0-3) time-slot# (0-31) time-slot# (0-63) time-slot# (0-63) time-slot# (0-127) time-slot# (0-15) cfi mode 1 cfi mode 2 cfi mode 3 pcm mode 2 pcm mode 1
peb 20550 pef 20550 application hints semiconductor group 243 01.96 memory access time writing to macr starts a memory write or read operation which takes a certain time. during this time no further memory accesses may be performed i.e. the madr, maar, and macr registers may not be written. the star:mac bit indicates whether a memory operation is still in progress (mac = 1) or already completed (mac = 0) and should therefore be interrogated before each access. since memory operations must be synchronized to the elic internal bus which is clocked by the reference clock (rcl), the time required for an indirect register access can be given as a multiple of rcl clock cycles. a normal access to a single memory location, for example, takes a maximum of 9.5 rcl cycles which is approximately 2.4 m s assuming a 4 mhz clock (e.g. cfi configured as standard iom-2 interface). memory access modes access to memory locations is furthermore influenced by the operation mode set via the operation mode register omdr. there are 4 modes which can be selected with the omdr:oms1, oms0 bits: operation mode register read/write reset value: 00 h Cthe cm reset mode (oms1 0 = 00) is used to reset all locations of the control memory code and data fields with a single command within only 256 rcl cycles. a typical application is resetting the cm with the command macr = 70 h which writes the contents of madr (xx h ) to all data field locations and the code 0000 (unassigned channel) to all code field locations. a cm reset should be made after each hardware reset. in the cm reset mode the elic does not operate normally i.e. the cfi and pcm interfaces are not operational. Cthe cm initialization mode (oms1 0 = 10) allows fast programming of the control memory since each memory access takes a maximum of only 2.5 rcl cycles compared to the 9.5 rcl cycles in the normal mode. accesses are performed on individual addresses specified by maar. the initialization of control/signaling channels in iom or sld applications can, for example, be carried out in this mode (see chapter 5.5.1 ). in the cm initialization mode the elic does also not work normally. C in the normal operation mode (oms1 0 = 11) the cfi and pcm interfaces are operational. memory accesses performed on single addresses (specified by maar) take 9.5 rcl cycles. an initialization of the complete data memory tristate field takes 1035 rcl cycles. bit 7 bit 0 omdr oms1 oms0 psb ptl cos mfps csb rbs
peb 20550 pef 20550 application hints semiconductor group 244 01.96 Cin test mode (oms1 0 = 01) the elic sustains normal operation. however memory accesses are no longer performed on a specific address defined by maar, but on all locations of the selected memory, the contents of maar (including the u/d bit!) being ignored. this function can for example be used to program a pcm idle code to all pcm ports and timeslots with a single command. 5.3.3 memory access commands the memory access commands can be divided into the following four categories: C access to the data memory data field: m p access to pcm frame C access to the data memory code field: pcm tristate control C access to the control memory data field: timeslot assignment, m p access to cfi frame C access to the control memory code field: set-up of cfi timeslot functionality in the following chapters, these commands are explained in more detail. 5.3.3.1 access to the data memory data field the data memory (dm) data field buffers the pcm data transmitted (upstream block) and received (downstream block) via the pcm interface. normally this data is switched transparently from or to the cfi and there is no need to access it from the m p interface. for some applications however it is useful to have a direct m p access to the pcm frame. when an upstream pcm timeslot (or even sub-timeslot) is not switched from the cfi (unassigned channel), it is possible to write a fixed value to the corresponding dm data field location. this value will then be transmitted repeatedly in each pcm frame without further m p interaction (pcm idle code). if instead a continuous pattern should be sent, the write access can additionally be synchronized to the frame by means of synchronous transfer interrupts (see chapter 5.7 ). writing to an upstream dm data field location can also be restricted to a 2 or 4 bit sub- timeslot. it is thus possible to have certain sub-timeslots of the same 8 bit timeslot switched from the cfi with the other sub-timeslots containing a pcm idle code. this restriction is made via the memory operation code (refer to table 38 ). for test purposes the upstream dm data field contents can also be read back. the downstream dm data field cannot be written to, it can only be read. reading such a location reflects the pcm data contained in the received pcm frame regardless of a connection to the cfi having been established or not. the m p can thus determine the contents of received pcm timeslots simply by reading the corresponding downstream dm locations. this reading can, if required, also be synchronized to the frame by means of synchronous transfer interrupts.
peb 20550 pef 20550 application hints semiconductor group 245 01.96 the procedure for writing to the upstream dm data field is w:madr = value to be transmitted in the pcm (sub)timeslot w:maar = address of the desired (upstream) 1) pcm timeslot encoded according to figure 84 moc3 0 defines the bandwidth and the position of the subchannel according to table 38 . the procedure for reading the dm data field is w:maar = address of the desired pcm timeslot encoded according to figure 84 w:macr = 1000 0000 b = 80 h 2) wait for star:mac = 0 r:madr = value figure 85 illustrates the access to the data memory data field. 1 the u/d bit of maar will implicitly be set to 1. 2 when reading a dm data field location, all 8 bits are read regardless of the bandwidth selected by the moc bits. bit 7 bit 0 w:macr = 0 moc3 moc2 moc1 moc0 0 0 0 table 38 memory operation codes for accesses to the dm data field moc3 0 transferred bits channel bandwidth 0000 0001 0011 0010 0111 0110 0101 0100 C bits 7 0 bits 7 4 bits 3 0 bits 7 6 bits 5 4 bits 3 2 bits 1 0 C 64 kbit/s 32 kbit/s 32 kbit/s 16 kbit/s 16 kbit/s 16 kbit/s 16 kbit/s
peb 20550 pef 20550 application hints semiconductor group 246 01.96 figure 85 access to the data memory data field itd08064 . . . . . ma6 u/d maar: ma0 data field 127 0 frame pcm up- stream 0 127 down- stream data memory madr: u/d = 1 u/d = 0 md0 md7 ..... rws 0 macr: . 0 0 moc 3 ... 0
peb 20550 pef 20550 application hints semiconductor group 247 01.96 examples in pcm mode 0 the idle code 1010 0101 b shall be transmitted in timeslot 16 of port 0: w:madr = 1010 0101 b ; idle code w:maar = 1100 0000 b ; address of upstream pcm timeslot 16 of port 0 according to figure 84 w:macr = 0000 1000 b : write access, moc code '0001' the idle code can, of course, only be transmitted on the txd# line if the corresponding tristate bits are enabled (refer to chapter 5.3.3.2 ): w:madr = xxxx 1111 b ; all 8 bits of addressed timeslot to low impedance w:maar = 1100 0000 b ; address of upstream pcm timeslot 16 of port 0 according to figure 84 w:macr = 0110 0000 b : write access, moc code 1100 for test purposes the idle code can also be read back: w:maar = 1100 0000 b ; address of upstream pcm timeslot 16 of port 0 according to figure 84 w:macr = 10xx x000 b : read access, moc code '0xxx' wait for star:mac = 0 r:madr = 1010 0101 b ; idle code in pcm mode 2 the idle pattern 0110 shall be transmitted in bit positions 3 0 of timeslot 63, bits 7 4 shall be tristated: w:madr = xxxx 0110 b ; idle code w:maar = 1011 1111 b ; address of upstream pcm timeslot 63 according to figure 84 w:macr = 0001 0000 b ; write access, moc code 0010 programming of the desired tristate functions: w:madr = xxxx 0011 b ; bits 7 4 to high impedance, bits 3 0 to low impedance w:maar = 1011 1111 b ; address of upstream pcm timeslot 63 according to figure 84 w:macr = 0110 0000 b ; write access, moc code 1100
peb 20550 pef 20550 application hints semiconductor group 248 01.96 5.3.3.2 access to the data memory code (tristate) field the data memory code field exists only for the upstream dm block and is also called the pcm tristate field. each (sub)timeslot of each pcm transmit port can be individually tristated via these code field locations. if a (sub)timeslot is set to low impedance, the contents of the corresponding dm data field location is transmitted with a push-pull driver onto the transmit port txd# and the tristate control line tsc# is pulled low for the duration of that (sub)timeslot. if a (sub)timeslot is set to high impedance, the transmit port txd# will be tristated and the tsc# line is pulled high for the duration of that (sub)timeslot. there are 4 code bits for selecting the tristate function of each 8 bit timeslot i.e. 1 control bit for each 16 kbit/s (2 bits) sub-timeslot. if a control bit is set to 1, the corresponding sub-timeslot is set to low impedance, if it is set to 0 the sub-timeslot is tristated. figure 86 illustrates this behavior. figure 86 tristate control at the pcm interface the tristate field can be written to and, for test purposes, also be read back. there are two commands (memory operation codes) for accessing the tristate field: with the single channel tristate control command (moc3 0 = 1100) the tristate field of a single pcm timeslot can be written to and also read back. the 4 least significant bits of madr are exchanged with the code field of the timeslot selected by the maar register. with the tristate control reset command (moc3 0 = 1101) the tristate field of all pcm timeslots can be written to with a single command. the 4 bits of madr are then copied to all code field locations regardless of the address programmed to maar. such a complete access to the dm tristate field takes 1035 rcl cycles. itd08065 xxxx0 1 10 0 1 0 0 1 1 0 1 0011 1 0 1 0 0 0 0 0 1 1 1 1 n n+1 n+2 n+3 high z 1 - 0 - pcm time-slot# dm data field dm tristate field txd# 1 0 x x 1 1 x xx x x x x x x x tsc# 0 - 1 -
peb 20550 pef 20550 application hints semiconductor group 249 01.96 the madr bits md7 md0 control the pcm timeslot bit positions 7 0 in the following way: md7 md4 are not used (dont care); md3 md0 select between the states high impedance (md# = 0) or low impedance (md#=1) the procedure for writing to a single pcm tristate field is w:madr = x x x x md3 md2 md1 md0 b w:maar = address of the desired (upstream) 1) pcm timeslot according to figure 84 w:macr = 0110 000 b = 60 h the procedure for reading back a (single) pcm tristate field location is w:maar = address of the desired (upstream) 1) pcm timeslot according to figure 84 w:macr = e0 h wait for star:mac = 0 r:madr = x x x x md3 md2 md1 md0 b the procedure for writing to all pcm tristate field positions is w:madr = x x x x md3 md2 md1 md0 b w:macr = 0110 1000 b = 68 h 1 the u/d bit of maar will implicitly be set to 1. timeslot bit position:76543210 madr bits: md3 md2 md1 md0
peb 20550 pef 20550 application hints semiconductor group 250 01.96 figure 87 illustrates the access to the tristate field: figure 87 access to the data memory code (tristate) field examples all pcm timeslots shall be set to high impedance (disabled): w:madr = 00 h ; all bits to high impedance w:macr = 68 h ; write access with moc = 1101 all pcm timeslots shall be set to low impedance (enabled): w:madr = ff h ; all bits to low impedance w:macr = 68 h ; write access with moc = 1101 in pcm mode 1, bits 7 6 and 1 0 of pcm port 1, timeslot 10 shall be set to low impedance, bits 5 2 to high impedance: w:madr = 0000 1001 b ; bits 7 6 and 1 0 to low impedance, bits 5 2 to high impedance w:maar = 1010 1010 b ; address of upstream pcm port 1, timeslot 10 according to figure 84 w:macr = 0110 0000 b ; write access with moc = 1100 itd08066 . . . . . ma6 u/d maar: ma0 code field frame pcm up- stream 0 127 data memory madr: u/d = 1 md0 rws 0 macr: 0 0 md1 md2 md3 x x x x 1 0 0/1 1
peb 20550 pef 20550 application hints semiconductor group 251 01.96 for test purposes this setting shall be read back: w:maar = 1010 1010 b ; address of upstream pcm port 1, timeslot 10 according to figure 84 w:macr = 1110 0000 b = e0 h ; read access with moc = 1100 wait for star:mac = 0 r:madr = xxxx 1001 b ; read back of md3 0 5.3.3.3 access to the control memory data field writing to or reading the control memory (cm) data field may serve different purposes depending on the function given to the corresponding cfi timeslot which is defined by the 4 bit code field value: there are two types of commands which give access to the cm data field: the memory operation code macr:moc = 111x is used for writing to the cm data field and code field simultaneously. the madr content is transferred to the data field while the macr:cmc3 0 bits are transferred to the code field. this command is explained in more detail in chapter 5.3.3.4 . the memory operation code macr:moc = 1001 is used for reading or writing to the cm data field. since the cm code field is not affected, this command makes only sense if the related cfi timeslot has already the desired functionality. the procedure for writing to the cm data field (using the moc = 1001 command) is w:madr = value w:madr = cfi timeslot address according figure 84 r:madr = 0100 1000 b = 48 h the procedure for reading the cm data field is w:maar = cfi timeslot address according figure 84 w:macr = 1100 1000 b = c8 h wait for star:mac = 0 r:madr = value table 39 cfi timeslot applications cfi timeslot application meaning of cm data field switched channel preprocessed channel m p channel pointer to pcm interface c/i or sig value cfi idle code
peb 20550 pef 20550 application hints semiconductor group 252 01.96 figure 88 illustrates this behavior. figure 88 access to the control memory data field itd08067 . . . . . ma6 u/d maar: ma0 data field 127 0 frame cfi up- stream 0 127 down- stream control memory madr: u/d = 1 u/d = 0 md0 md7 ..... rws 0 macr: . 0 0 001 1
peb 20550 pef 20550 application hints semiconductor group 253 01.96 examples in cfi mode 2, cfi timeslot 123 has been initialized as a switched channel. the cm data field value therefore represents a pointer to the pcm interface. in a first step, the involved upstream and downstream pcm timeslots shall be determined: w:maar = 1111 1011 b ; address of upstream cfi timeslot 123 w:macr = 1100 1000 b ; read back command wait for star:mac = 0 r:madr = value ; encoded according figure 84 w:maar = 0111 1011 b ; address of downstream cfi timeslot 123 w:macr = 1100 1000 b ; read back command wait for star:mac = 0 r:madr = value ; encoded according figure 84 in the next step a new timeslot assignment (to pcm port 1, timeslot 34, pcm mode 1) shall be made for the upstream connection: w:madr = 1100 0110 b ; upstream pcm timeslot 34, port 1 w:maar = 1111 1011 b ; address of upstream cfi timeslot 123 w:macr = 0100 1000 b ; write command 5.3.3.4 access to the control memory code field the 4 bit code field of the control memory (cm) defines the functionality of a cfi timeslot and thus the meaning of the corresponding data field. there are codes for switching applications, preprocessed applications and for direct m p access applications (see table 40 ). this 4 bit code, written to the macr:cmc3 0 bit positions, will be transferred to the cm code field by selecting macr:moc = 111x. the 8 bit madr value is at the same time transferred to the cm data field. the procedure for writing to the cm code and data fields with a single command is w:madr = value for data field w:maar = cfi timeslot address encoded according to figure 84 cmc3 0 cm code, refer to table 40 bit 7 bit 0 w:macr = 0 1 1 1 cmc3 cmc2 cmc1 cmc0
peb 20550 pef 20550 application hints semiconductor group 254 01.96 figure 89 illustrates this behavior. figure 89 write access to the control memory data and code fields for reading back the cm code field, the command macr:moc = 111x is also used, the value of cmc3 0 being dont care. the code field value can then be read from the lower 4 bits of madr. itd08068 . . ma6 u/d macr: data field control memory madr: u/d = 1 u/d = 0 md0 md7 ..... maar: . code field stream down- 127 0 stream up- cfi frame 0 127 0 ... 3 cmc .. . ma0 1 1 1 0
peb 20550 pef 20550 application hints semiconductor group 255 01.96 the procedure for reading the cm code is w:maar = cfi timeslot address encoded according to figure 84 w:macr = 1111 xxxx b wait for star:mac = 0 cmc3 0: cm code, refer to table 40 figure 90 illustrates this behavior. figure 90 read access to the control memory code field bit 7 bit 0 r:madr= x x x x cmc3cmc2cmc1cmc0 itd08069 . . ma6 u/d macr: control memory madr: u/d = 1 u/d = 0 md0 maar: code field stream down- 127 0 stream up- cfi frame 0 127 .. . ma0 1 1 1x x 1xx x xx x md1 md2 md3
peb 20550 pef 20550 application hints semiconductor group 256 01.96 table 40 shows all available control memory codes. examples in cfi mode 2, cfi timeslot 123 shall be initialized as a switched channel. the cm data field value therefore represents a pointer to the pcm interface. in a first step, a timeslot assignment to pcm port 1, timeslot 34 (pcm mode 1) shall be made for a 64 kbit/s upstream connection: w:madr = 1100 0110 b ; upstream pcm timeslot 34, port 1 w:maar = 1111 1011 b ; address of upstream cfi timeslot 123 w:macr = 0111 0001 b ; write data + code field command, code 0001 in a next step, the bandwidth of the previously made connection shall be verified: w:maar = 1111 1011 b ; address of upstream cfi timeslot 123 w:macr = 1111 0000 b ; read back code field command wait for star:mac = 0 r:madr = xxxx 0001 b ; the code 0001 (64 kbit/s channel) is read back table 40 control memory codes application cmc3 0 transferred bits channel bandwidth disable connection switched 8 bit channel switched 4 bit channel switched 4 bit channel switched 2 bit channel switched 2 bit channel switched 2 bit channel switched 2 bit channel 0000 0001 0011 0010 0111 0110 0101 0100 C bits 7 0 bits 7 4 bits 3 0 bits 7 6 bits 5 4 bits 3 2 bits 1 0 unassigned 64 kbit/s 32 kbit/s 32 kbit/s 16 kbit/s 16 kbit/s 16 kbit/s 16 kbit/s preprocessed channel preprocessed channel preprocessed channel 1000 1010 1011 refer to chapter 5.5 m p channel 1001 refer to chapter 5.6 and chapter 5.7
peb 20550 pef 20550 application hints semiconductor group 257 01.96 tristate behavior at the configurable interface the downstream control memory code field, together with the cscr and omdr registers also defines the state of the output driver at the downstream cfi ports. unassigned channels (code 0000) are set to the inactive state. subchannels (codes 0010 to 0111) are only active during the sub-timeslot position specified in cscr. the omdr:cos bit selects between tristate outputs and open drain outputs: figure 91 illustrates this behavior in case of tristate outputs: figure 91 tristate behavior at the cfi 1) an external pull-up resistor is required to establish a high voltage level. table 41 tristate/open drain output characteristics at the cfi logical state tristate outputs open drain outputs logical 0 logical 1 inactive low voltage level high voltage level high impedance low voltage level not driven 1) not driven 1) itd08070 xxxxxxxx pointer to dm pointer to dm 0 1 0 0 1 1 0 1 0000 1 0 0 0 0 1 1 0 1 0 0 1 n n+1 n+2 n+3 unassigned channel 64 kbps channel (switched from pcm) 16 kbps channel cscr : sc#1..#0 = 01 (switched from pcm) p channel (always 64 kbit/s) high z 1 - 0 - cfi time-slot # cm data field cm code field dd #
peb 20550 pef 20550 application hints semiconductor group 258 01.96 summary of memory operations table 42 summary of control and data memory commands application madr maar macr (hex) writing a pcm idle value to the upstream dm data field the macr value specifies the bandwidth and bit position at the pcm interface 8 bit, 4 bit or 2 bit idle value to be transmitted at the pcm interface address of the (upstream) pcm port and timeslot 08 h (bits 7 0) 18 h (bits 7 4) 10 h (bits 3 0) 38 h (bits 7 6) 30 h (bits 5 4) 28 h (bits 3 2) 20 h (bits 1 0) reading the up- or downstream dm data field 8 bit value transmitted at the upstream or 8 bit value received at the downstream pcm interface address of the pcm port and timeslot 88 h writing to a single tristate field location tristate information contained in the 4 lsbs: 0=tristated, 1=active address of the (upstream) pcm port and timeslot 60 h writing to all tristate field locations tristate information contained in the 4 lsbs: 0=tristated, 1=active dont care 68 h reading a single tristate field location tristate information contained in the 4 lsbs address of the (upstream) pcm port and timeslot e0 h writing to the cm data field 8 bit value (c/i value, pointer to pcm interface, etc.) address of the cfi port and timeslot 48 h
peb 20550 pef 20550 application hints semiconductor group 259 01.96 reading the cm data field 8 bit value (c/i value, pointer to pcm interface, etc.) address of the cfi port and timeslot c8 h reading the cm code field 4 bit code contained in the 4 lsbs address of the cfi port and timeslot f0 h writing a switching code to the cm the macr value specifies the bandwidth and bit position at the pcm interface pointer to dm: pcm port and timeslot address of the cfi port and timeslot 70 h (unassigned) 71 h (bits 7 0) 73 h (bits 7 4) 72 h (bits 3 0) 77 h (bits 7 6) 76 h (bits 5 4) 75 h (bits 3 2) 74 h (bits 1 0) writing the m p channel code to the cm 8 bit idle value address of the cfi port and timeslot 79 h writing a preprocessed channel code to the cm refer to figure 104 refer to figure 104 refer to figure 104 table 42 summary of control and data memory commands (contd) application madr maar macr (hex)
peb 20550 pef 20550 application hints semiconductor group 260 01.96 5.4 switched channels this chapter treats the switching functions between the cfi and pcm interfaces which are programmed exclusively in the control memory. the switching functions of channels which involve the m p interface or which are programmed in the synchronous transfer registers are treated in chapter 5.6 and chapter 5.7 . the elic is a non-blocking space and time switch for 128 channels per direction. switching is performed between the configurable (cfi) and the pcm interfaces. both interfaces provide up to 128 timeslots which can be split up into either 4 ports with up to 32 timeslots, 2 ports with up to 64 timeslots or 1 port with up to 128 timeslots. in all of these cases each port consists of a separate transmit and receive line (duplex ports). on the cfi side a bidirectional mode is also provided (cfi mode 3) which offers 8 ports with up to 16 timeslots per port. in this case each timeslot of each port can individually be programmed to be either input or output. the timeslot numbering always ranges from 0 to n C 1 (n = number of timeslots/frame), and each timeslot always consists of 8 contiguous bits. the bandwidth of a timeslot is therefore always 64 kbit/s. the elic can switch single timeslots (64 kbit/s channels), double timeslots (128 kbit/s channels) and also 2 bit and 4 bit wide sub-timeslots (16 and 32 kbit/s channels). the bits in a timeslot are numbered 7 through 0. on the serial interfaces (pcm and cfi), bit 7 is the first bit to be transmitted or received, bit 0 the last. if the m p has access to the serial data, bit 7 represents the msb (d7) and bit 0 the lsb (d0) on the m p bus. the switching of 128 kbit/s channels implies that two consecutive timeslots starting with an even timeslot number are used, e.g. pcm timeslots 22 and 23 can be switched as a single 16 bit wide timeslot to cfi timeslots 4 and 5. under these conditions it is guaranteed that the involved timeslots are submitted to the same frame delay (also refer to chapter 5.4.4 ). the switching of channels with a data rate of 16 and 32 kbit/s is possible for the following sub-timeslot positions within an 8 bit timeslot:
peb 20550 pef 20550 application hints semiconductor group 261 01.96 5.4.1 cfi - pcm timeslot assignment all timeslot assignments are programmed in the control memory (cm). each line (address) of the cm refers to one cfi timeslot. the maar register, which is used to address the cm, therefore specifies the cfi port and timeslot to be switched. the data field of the cm contains a pointer which points to a location in the data memory (dm). the data memory contains the actual pcm data to be switched. the madr register contains the data to be copied to the cm data field. since this data is interpreted as a pointer to the dm, the madr contents therefore specifies the pcm port and timeslot to be switched. the 4 bit cm code field must finally contain a value to declare the corresponding cfi timeslot as a switched channel (codes with a leading 0). this code must be written at least once to the cm using the macr register. since the cfi - pcm timeslot assignment is programmed at the cfi side, it is possible to switch a single downstream pcm timeslot to several downstream cfi timeslots. it is, however, not possible to switch a single upstream cfi timeslot to several upstream pcm timeslots. if several upstream 64 kbit/s cfi timeslots are assigned to the same upstream 64 kbit/ s pcm timeslot, only the data of one cfi timeslot will be actually be switched since each upstream connection will simply overwrite the dm data field. this switching mode can therefore only effectively be used if the upstream switching is performed on different sub- timeslot locations within the same pcm timeslot (refer to chapter 5.4.2 ). the following sequences can be used to program, verify, and cancel a cfi - pcm timeslot connection: 8 bit timeslot: 76543210 32 kbit/s channel7654 32 kbit/s channel 3210 16 kbit/s channel 7 6 16 kbit/s channel 5 4 16 kbit/s channel 3 2 16 kbit/s channel 1 0
peb 20550 pef 20550 application hints semiconductor group 262 01.96 programming of a 64 kbit/s cfi - pcm timeslot connection C in case the cm code field has not yet been initialized with a switching code: w:madr = pcm port and timeslot encoded according to figure 84 w:maar = cfi port and timeslot encoded according to figure 84 w:macr = 0111 0001 b = 71 h C in case the cm code field has already been initialized with a switching code: w:madr = pcm port and timeslot encoded according to figure 84 w:maar = cfi port and timeslot encoded according to figure 84 w:macr = 0100 1000 b = 48 h enabling the pcm output driver for a 64 kbit/s timeslot w:madr = xxxx 1111 b = xf h w:maar = pcm port and timeslot encoded according to figure 84 w:macr = 0110 0000 b = 60 h reading back a timeslot assignment of a given cfi timeslot C reading back the pcm timeslot involved: w:maar = cfi port and timeslot encoded according to figure 84 w:macr = 1100 1000 b = c8 h wait for star:mac = 0 r:madr = pcm port and timeslot encoded according to figure 84 C reading back the involved bandwidth and pcm sub-timeslot position: w:maar = cfi port and timeslot encoded according to figure 84 w:macr = 1111 0000 b = f0 h wait for star:mac = 0 r:madr = xxxx code; 4 bit bandwidth code encoded according to table 40 cancelling of a programmed cfi - pcm timeslot connection w:madr = dont care w:maar = cfi port and timeslot encoded according to figure 84 w:macr = 0111 0000 b = 70 h ; code 0000 (unassigned channel) disabling the pcm output driver w:madr = xxxx 0000 b = x0 h w:maar = pcm port and timeslot encoded according to figure 84 w:macr = 0110 0000 b = 60 h
peb 20550 pef 20550 application hints semiconductor group 263 01.96 examples in pcm mode 1 and cfi mode 3 the following connections shall be programmed: upstream: cfi port 5, timeslot 7, bits 7 0 to pcm port 0, timeslot 12, bits 7 0 w:madr = 1001 1000 b ; pcm timeslot encoding according to figure 84 w:maar = 1011 1011 b ; cfi timeslot encoding according to figure 84 w:macr = 0111 0001 b ; cm code for switching a 64 kbit/s channel (code 0001) downstream: cfi port 4, timeslot 2, bits 7 0 from pcm port 1, timeslot 3, bits 7 0 w:madr = 0000 0111 b ; pcm timeslot encoding according to figure 84 w:maar = 0001 1000 b ; cfi timeslot encoding according to figure 84 w:macr = 0111 0001 b ; cm code for switching a 64 kbit/s channel (0001) the following sequence sets transmit timeslot 12 of pcm port 0 to low impedance: w:madr = 0000 1111 b ; all bits to low z w:maar = 1001 1011 b ; pcm timeslot encoding according to figure 84 w:macr = 0110 0000 b ; moc code 1100 to access the tristate field
peb 20550 pef 20550 application hints semiconductor group 264 01.96 after these three programming steps, the elic memories will have the following contents: figure 92 memory content of the elic ? for a cfi - pcm timeslot connection itd08071 10011000 1 0 0 0 code field data field control memory cfi frame 0 127 up- stream stream down- 1 1 1 0 0 0 0 0 127 0 0 001 code field data field 1111 127 0 frame pcm up- stream 0 127 down- stream data memory p5, ts7 p4, ts2 p0, ts12 p1, ts3
peb 20550 pef 20550 application hints semiconductor group 265 01.96 5.4.2 subchannel switching the switching of subchannels is programmed by first specifying the timeslot (which is always 8 bits wide) to be switched, then by restricting the actual switching operation to the desired bandwidth and sub-timeslot position. the switching function for an (8 bit) cfi timeslot is programmed in the control memory (cm) by writing a pointer that points to an (8 bit) pcm timeslot to the corresponding data field location. the madr register contains the pointer (pcm timeslot) and the maar register is used to specify the cfi timeslot. the 8 bit connection can now be restricted to the desired 4 or 2 bit connection by selecting an appropriate control memory code. the code is programmed via macr:cmc3 0. these subchannel codes perform two functions: they specify the bandwidth (actual number of bits to be switched) and the location of the sub-timeslot within the selected (8 bit) pcm timeslot. the location of the sub-timeslot within the selected (8 bit) cfi timeslot is predefined by the setting of the cscr register. each cfi port can be set to a different sub-timeslot mode. in each mode a certain relationship exists between programmed bandwidth (which can still be individually selected for each cfi timeslot) and the occupied bit positions within the timeslot (which is fixed for each cfi port by the cscr register). it should be noted that only one sub-timeslot can exist within a given cfi timeslot. on the pcm side however each timeslot may be split up into 2 4 bits, 4 2 bits or any mixture of these. the cscr register has the following format: cfi subchannel register read/write reset value: 00 h below, all possible combinations of subchannel switching between the cfi and pcm interfaces are shown: bit 7 bit 0 cscr sc31 sc30 sc21 sc20 sc11 sc10 sc01 sc00
peb 20550 pef 20550 application hints semiconductor group 266 01.96 subchannel selection sc#1 sc#0 = 00: subchannel selection sc#1 sc#0 = 01: cm code cfi subchannel position switched to or from pvm subchannel position ? cfi timeslot ?? pcm timeslot ? 0001 76543210 ?? 76543210 0011 7654 ?? 7654 0010 7654 ?? 3210 0111 7 6 ?? 76 0110 7 6 ?? 54 0101 7 6 ?? 32 0100 7 6 ?? 10 cm code cfi subchannel position switched to or from pvm subchannel position ? cfi timeslot ?? pcm timeslot ? 0001 76543210 ?? 76543210 0011 3210 ?? 7654 0010 3210 ?? 3210 0111 5 4 ?? 76 0110 5 4 ?? 54 0101 5 4 ?? 32 0100 5 4 ?? 10
peb 20550 pef 20550 application hints semiconductor group 267 01.96 subchannel selection sc#1 sc#0 = 10: subchannel selection sc#1 sc#0 = 11: cm code cfi subchannel position switched to or from pvm subchannel position ? cfi timeslot ?? pcm timeslot ? 0001 76543210 ?? 76543210 0011 7654 ?? 7654 0010 7654 ?? 3210 0111 3 2 ?? 76 0110 3 2 ?? 54 0101 3 2 ?? 32 0100 3 2 ?? 10 cm code cfi subchannel position switched to or from pvm subchannel position ? cfi timeslot ?? pcm timeslot ? 0001 76543210 ?? 76543210 0011 3210 ?? 7654 0010 3210 ?? 3210 0111 1 0 ?? 76 0110 1 0 ?? 54 0101 1 0 ?? 32 0100 1 0 ?? 10
peb 20550 pef 20550 application hints semiconductor group 268 01.96 examples in pcm mode 0 and cfi mode 0 the following connections shall be programmed: upstream: cfi port 0, timeslot 3, bits 1 0 to pcm port 0, timeslot 4, bits 1 0 w:madr = 1001 0000 b pcm timeslot encoding, the subchannel position is defined by macr:cmc3 0 = 0100 w:maar = 1000 1001 b cfi timeslot encoding, the subchannel position is defined by cscr:sc01 00 = 11 w:macr = 0111 0100 b cm code for switching a 16 kbit/s/bits 1 0 channel (0100) upstream: cfi port 3, timeslot 7, bits 3 2 to pcm port 0, timeslot 4, bits 5 4 w:madr = 1001 0000 b pcm timeslot encoding, the subchannel position is defined by macr:cmc3 0 = 0110 w:maar = 1001 1111 b cfi timeslot encoding, the subchannel position is defined by cscr:sc31 30 = 10 w:macr = 0111 0110 b cm code for switching a 16 kbit/s, bits 3 2 channel (0110) the following sequence sets transmit timeslot 4 of pcm port 0 bits 5 4 and 1 0 to low impedance and bits 7 6 and 3 2 to high impedance: w:madr = 0000 0101 b bits 5, 4, 1, 0 to low z and bits 7, 6, 3, 2 to high z w:maar = 1001 0000 b pcm timeslot encoding w:macr = 0110 0000 b moc code to access the tristate field downstream: cfi port 2, timeslot 7, bits 3 0 from pcm port 1, timeslot 3, bits 7 4 w:madr = 0000 1011 b pcm timeslot encoding, the subchannel position is defined by macr:cmc3 0 = 0011 w:maar = 0001 1101 b cfi timeslot encoding, the subchannel position is defined by cscr:sc21 20 = 01 w:macr = 0111 0011 b cm code for switching a 32 kbit/s/bits 7 4 channel (0011)
peb 20550 pef 20550 application hints semiconductor group 269 01.96 downstream: cfi port 2, timeslot 10, bits 5 4 from pcm port 0, timeslot 4, bits 7 6 w:madr = 0001 0000 b pcm timeslot encoding, the subchannel position is defined by macr:cmc3 0 = 0111 w:maar = 0010 1100 b cfi timeslot encoding, the subchannel position is defined by cscr:sc21 20 = 01 w:macr = 0111 0111 b cm code for switching a 16 kbit/s/bits 7 6 channel (0111) finally the cscr register has to be programmed to define the subchannel positions at the cfi: w:cscr = 1001 xx11 b port 0: bits 1 0 or 3 0; port 1: not used in this example; port 2: bits 5 4 or 3 0; port 3: bits 3 2 or 7 4 after these three programming steps, the elic memories will have the following content: figure 93 memory content in case of cfi - pcm subchannel connections itd08072 1001 000 10 0 code field data field control memory cfi frame 0 127 up- stream stream down- 1 1 10 0 0 0 0 127 0 0 01 code field data field 127 0 frame pcm up- stream 0 127 down- stream data memory p0, ts3 bits 1, 0 01 0 0 0 1 0 0 1 bits 3, 2 p3, ts7 10 0 0 0 1 001 bits 7, 4 p1, ts3 p0, ts4 -- - - p0, ts4 bits 7, 6 1 11 0 000 0 1 10 0 0 p2, ts7 bits 3, 0 p2, ts10 bits 5, 4
peb 20550 pef 20550 application hints semiconductor group 270 01.96 5.4.3 loops loops between timeslots (or even sub-timeslots) of the cfi (cfi ? cfi) or the pcm interface (pcm ? pcm) can easily be programmed in the control memory. it is thus possible to establish individual loops for individual timeslots on both interfaces without making external connections. these loops can serve for test purposes only or for real switching applications within the system. it should be noted that such a loop connection is always carried out over the opposite interface i.e. looping back a cfi timeslot to another cfi timeslot occupies a spare upstream pcm timeslot and looping back a pcm timeslot to another pcm timeslot occupies a spare downstream and upstream cfi timeslot. the required timeslot on the opposite interface can however be switched to high impedance in order not to disturb the external line. 5.4.3.1 cfi - cfi loops for looping back a timeslot of a cfi input port to a cfi output port, two connections must be programmed: a first connection switches the upstream cfi timeslot to a spare pcm timeslot. this connection is programmed like a normal cfi to pcm link, i.e the madr contains the encoding for the upstream pcm timeslot (u/d = 1) which is written to the upstream cm (maar contains the encoding for the upstream cfi timeslot (u/d = 1)). if the data should also be transmitted at txd#, the tristate field of that pcm timeslot can be set to low impedance (transparent loop). if txd# should be disabled, the tristate field of that pcm timeslot can be set to high impedance (non-transparent loop). the second connection switches the upstream pcm timeslot (contents of the upstream data memory) back to the downstream cfi timeslot. this connection is programmed by using exactly the same madr value as has been used for the first connection, i.e. the encoding for the spare upstream pcm timeslot (with u/d = 1). this madr value is written to the downstream cm (maar contains the encoding for the downstream cfi timeslot (u/d = 0). the following example illustrates the necessary programming steps for establishing cfi to cfi loops.
peb 20550 pef 20550 application hints semiconductor group 271 01.96 example in pcm mode 0 and cfi mode 0 the following non-transparent cfi to cfi loop via pcm port 0, timeslot 0 shall be programmed: upstream: cfi port 2, timeslot 4, bits 7 0 to pcm port 0, timeslot 0, bits 7 0 w:madr = 1000 0000 b pcm timeslot encoding (pointer to upstream dm) w:maar = 1001 0100 b cfi timeslot encoding (address of upstream cm) w:macr = 0111 0001 b cm code for switching a 64 kbit/s/bits 7 0 channel (0001) downstream: cfi port 1, timeslot 7, bits 7 0 from pcm port 0, timeslot 0, bits 7 0 w:madr = 1000 0000 b pcm timeslot encoding (pointer to upstream dm) w:maar = 0001 1011 b cfi timeslot encoding (address of downstream cm) w:macr = 0111 0001 b cm code for switching a 64 kbit/s/bits 7 0 channel (0001) the following sequence sets transmit timeslot 0 of pcm port 0 to high impedance: w:madr = 0000 0000 b all bits to high z w:maar = 1000 0000 b pcm timeslot encoding w:macr = 0110 0000 b moc code to access the tristate field
peb 20550 pef 20550 application hints semiconductor group 272 01.96 after these three programming steps, the elic memories will have the following contents: figure 94 memory content in case of a cfi ? cfi loop itd08073 100 000 1 0 0 0 code field data field control memory cfi frame 0 127 up- stream stream down- 10 0 0 00 127 0 0 001 code field data field 127 0 frame pcm up- stream 0 127 down- stream data memory p2, ts4 p1, ts7 p0, ts0 0000 0 0 0 0
peb 20550 pef 20550 application hints semiconductor group 273 01.96 5.4.3.2 pcm - pcm loops for looping back a timeslot of a pcm input port to a pcm output port, two connections must be programmed: the first connection switches the downstream pcm timeslot to a spare cfi timeslot. this connection is programmed like a normal pcm to cfi link, i.e the madr contains the encoding for the downstream pcm timeslot (u/d = 0) which is written to the downstream cm (maar contains the encoding for the downstream cfi timeslot (u/d = 0)). if the data should also be transmitted at dd# (transparent loop), the programming is performed with macr:cmc3 0 = 0001 0111, the actual code depending on the required bandwidth. if dd# should be disabled (non-transparent loop), the programming is performed with macr:cmc3 0 = 0000, the code for unassigned channels. the second connection switches the serial cfi timeslot data back to the upstream pcm timeslot. this connection is programmed by writing the encoded pcm timeslot via madr to the upstream cm. this upstream pointer must however have the msb set to 0 (u/ d = 0). this madr value is written to the same spare cfi timeslot as the pcm timeslot had been switched to in the first step. only that now the upstream cm is accessed (maar addresses the upstream cfi timeslot (u/d = 1)). in contrast to the cfi ? pcm ? cfi loop, which is internally realized by extracting the cfi data out of the upstream data memory (see chapter 5.4.3.1 ), the pcm ? cfi ? pcm loop is realized differently: the downstream pcm ? cfi connection switches the pcm data to the internal downstream serial cfi output. from this internal output, the data is switched to the upstream serial cfi input if the control memory of the corresponding upstream cfi timeslot contains a pointer with a leading 0 (u/d = 0). however, this pointer (with u/ d = 0) still points to the upstream data memory, i.e to an upstream pcm timeslot. the following example illustrates the necessary programming steps for establishing pcm to pcm loops: example in pcm mode 1 and cfi mode 0 the following non-transparent pcm to pcm loop via cfi port 1, timeslot 4 shall be programmed: downstream: cfi port 1, timeslot 4, bits 7 0 from pcm port 0, timeslot 13, bits 7 0 w:madr = 0001 1001 b pcm timeslot encoding (pointer to downstream dm) w:maar = 0001 0010 b cfi timeslot encoding (address of downstream cm) w:macr = 0111 0000 b cm code for unassigned channel (0000)
peb 20550 pef 20550 application hints semiconductor group 274 01.96 upstream: cfi port 1, timeslot 4, bits 7 0 to pcm port 0, timeslot 5, bits 7 0 w:madr = 0000 1001 b pcm timeslot encoding (pointer to upstream dm, loop switch (msb = 0) activated) w:maar = 1001 0010 b cfi timeslot encoding (address of upstream cm) w:macr = 0111 0001 b cm code for switching a 64 kbit/s/bits 7 0 channel (0001) the following sequence sets transmit timeslot 5 of pcm port 0 to low impedance: w:madr = 0000 1111 b all bits to low z w:maar = 1000 1001 b pcm timeslot encoding w:macr = 0110 0000 b moc code to access the tristate field after these three programming steps, the elic memories will have the following contents: figure 95 memory content in case of a pcm ? pcm loop itd08074 000 001 1 0 0 0 code field data field control memory cfi frame 0 127 up- stream stream down- 01 1 0 00 127 0 0 000 code field data field 127 0 frame pcm up- stream 0 127 down- stream data memory p1, ts4 p0, ts5 1111 1 0 1 0 p1, ts4 p0, ts13
peb 20550 pef 20550 application hints semiconductor group 275 01.96 5.4.4 switching delays when a channel is switched from an input time slot (e.g. from the pcm interface) to an output time slot (e.g. to the cfi), it is sometimes useful to know the frame delay introduced by this connection. this is of prime importance for example if channels having a bandwidth of n 64 kbit/s (e.g. h0 channels: 6 64 = 384 kbit/s) shall be switched by the elic. if all 6 time slots of an h0 channel are not submitted to the same frame delay, time slot integrity is no longer maintained. since the elic has only a one frame buffer, the switching delay depends mainly on the location of the output time slot with respect to the input time slot. if there is enough time between the two locations, the elic switches the input data to the output data within the same frame (see figure 96 a) ). if the time between the two locations is too small or if the output time slot is later in time than the input time slot, the data received in frame n will only be transmitted in frame n + 1 or even n + 2 (see figure 96 b) ) and figure 96 c) ). figure 96 itd08075 n n + 1 n + 2 + n + 2 n + 1 n input frame output frame a) switching delay : 0 frames b) switching delay : 1 frames output frame input frame n n n input frame output frame c) switching delay : 2 frames n n + 1 n + 1 n + 1 n + 2 n + 2 n + 2 n + 2 n + 1
peb 20550 pef 20550 application hints semiconductor group 276 01.96 the exact respective time slot positions where the delay skips from 0 frames to 1 frame and from 1 frame to 2 frames can be determined when having a closer look at the internal read and write cycles to the data memory. the next two figures show the internal timing characteristics for the access to the data memory (dm) of the elic. for simplicity, only the case where the pcm and cfi frames both start simultaneously at position time slot 0, bit 7 is shown. also, only the cases with 2, 4 and 8 1024 kbit/s data rates are shown. all other cases (different frame offsets and different data rates) can, however, be deduced by taking into account the respective frame positions, and, eventually, by taking into account a different rcl frequency. 5.4.4.1 internal procedures at the serial interfaces the data is received and transmitted at the pcm and configurable interfaces in a serial format. before being written to the dm, the data is converted into parallel format. the vertical arrows indicate the position in time where the incoming time slot data is written to the data memory. the writing to the dm is only possible during certain time intervals which are also indicated in the figures. for outgoing time slots, the data is first read in parallel format from the dm. this also is only possible during certain read cycles as indicated in the figures (vertical arrows). before the time slot data is sent out, it must first be converted into serial format. the data contained in a time slot can be switched from an incoming time slot position to an outgoing time slot position within the same frame (0 frame delay) if the reading from the dm occurs after the writing to the dm. if the reading occurs before the writing, the data from the previous frame is taken, i.e. the frame delay is one frame.
peb 20550 pef 20550 application hints semiconductor group 277 01.96 figure 97 internal timing data downstream itt08076 01234567 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 0 cfi rate = 8 mbit/s no bit shift at pcm and cfi interface 4 mhz = rcl possible ts0 ts1 ts2 ts3 ts4 ts5 ts6 ts7 ts8 ts9 ts10 ts11 ts12 ts13 ts14 ts15 8 mbit/s = pcm rate rxd3 rxd3 possible read cycles write cycles rxd3 rxd3 write cycles write cycles rxd3 rxd1 rxd3 rxd1 = 4 mbit/s 2 mbit/s = write cycles to dd0 ts3 ts2 read cycles to dd0 to dd0 to dd0 to dd0 to dd1 to dd0 to dd1 to dd0 to dd0 to dd1 to dd0 to dd1 to dd1 to dd0 to dd0 to dd1 to dd2 to dd3 4 mbit/s = to dd2 to dd3 = 2 mbit/s pcm rate pcm rate ts120 ...123 127 ... ts124 ts4... 7 3 ... ts0 ts0 ts1 ts2 ts3 ts4 ts5 ts6 ts7 ts60 ... 63 63 ... ts60 ts0 ... 3 3 ... ts0 ts0 ts1 ts2 ts3 1 ... ts0 ts30 ... 31 31 ... ts30 ts0 ... 1 1 ... rxd0 rxd2 ... 3 3 ... rxd2 rxd0 ... 1 ts15 ts14 ts13 ts12 ts11 ts10 ts9 ts8 ts7 ts6 ts5 ts4 ts3 ts2 ts1 ts0 cfi rate cfi rate ts3 ts2 ts1 ts0 ts7 ts6 ts5 ts4 ts3 ts2 ts1 ts0 ts4 ts5 ts6 ts7 ts4 ts5 ts6 ts7 ts7 ts6 ts5 ts4 ts3 ts2 ts2 ts3 ts9 ts8 ts8 ts9 ts9 ts8 ts10 ts11 ts13 ts12 to dd0 ts15 ts14 to dd0 ts17 ts16 to dd0 ts3 ts2 ts2 ts3 ts4 ts5 ts5 ts4 ts4 ts5 ts5 ts4 ts3 ts2 ts2 ts3
peb 20550 pef 20550 application hints semiconductor group 278 01.96 figure 98 internal timing data upstream itt08077 01234567 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 0 txd0 txd0 txd0 txd0 write cycles read cycles possible possible txd0 txd2 txd2 txd0 no bit shift at pcm and cfi interface write cycles read cycles cfi rate = 8 mbit/s 4 mhz = rcl ts0 ts1 ts2 ts3 ts4 ts5 ts6 ts7 ts8 ts9 ts10 ts11 ts12 ts13 ts14 ts15 8 mbit/s = pcm rate = 4 mbit/s 2 mbit/s = ts3 ts2 4 mbit/s = = 2 mbit/s pcm rate pcm rate ts0 ts1 ts2 ts3 ts4 ts5 ts6 ts7 ts0 ts1 ts2 ts3 cfi rate cfi rate ts4 ts5 ts6 ts7 ts9 ts8 ts10 ts11 ts13 ts12 ts31 ts30 to du0 ts0 ts1 to du0 to du0 to du0 to du0 to du0 to du0 to du0 to du0 to du0 to du0 ts1 ts0 to du0 ts30 ts31 ts5 ts4 ts2 ts3 ts31 ts30 to du1 ts3 ts2 ts4 ts5 ts0 ts1 to du1 to du1 to du1 to du1 ts30 ts31 ts31 ts30 to du0 to du1 ts1 ts0 ts0 ts1 to du0 ts1 ts0 ts0 ts1 ts30 ts31 ts31 ts30 to du2 to du3 to du3 to du2 ts20 ... 23 19 ... ts16 ts24 ... 27 31 ... ts28 ts15 ts14 ts13 ts12 ts11 ts10 ts9 ts8 ts7 ts6 ts5 ts4 ts3 ts2 ts1 ts0 ts3 ts2 ts1 ts0 ts7 ts6 ts5 ts4 ts3 ts2 ts1 ts0 15 ... ts12 ts8 ...11 txd2 ... 3 1 ... txd0 5 ... ts4 11 ... ts8 ts4 ... 5 ts12 ...15 ts6 ... 7 txd0 ... 1 3 ... txd2 7 ... ts6
peb 20550 pef 20550 application hints semiconductor group 279 01.96 5.4.4.2 how to determine the delay in order to determine the switching delay for a certain configuration, the following rules have to be applied with respect to the timing diagram: data downstream C at the pcm interface the incoming data (data downstream) is written to the ram after the beginning of: time slot: 2 n for mode 0 time slot: 4 n for mode 1 time slot: 8 n for mode 2 note: n is an integer number. the point of time to write the data to the ram is rcl period 0, 4, 7 for the pcm interface due to internal delays, the rcl period at the beginning of time slot 2 n (for mode 0), 4 n (for mode 1), 8 n for mode 2) is not a valid write cycle. C at the cfi interface the data, that is to be transmitted on: ts 2 n + 4 ... 2 n + 5 (cfi mode 0) ts 2 n + 6 ... 2 n + 7 (cfi mode 1) ts 2 n + 10 ... 2 n + 11 (cfi mode 2) is read out of the ram as soon as time slot: 2 n + 1 (for mode 0) 2 n + 3 (for mode 1) 2 n + 7 (for mode 2) is transmitted note: n is an integer number; the time slot number cant exceed the max. number of ts. the point of time to read the data from the ram is rcl period 5 and 6 for the cfi interface. the data is read out of the ram in several steps in the following order: cfi mode 0: - even ts for dd0, odd ts for dd0, even ts for dd0, odd ts for dd1, even ts for dd0, odd ts for dd2, even ts for dd0, odd ts for dd3 cfi mode 1: - even ts for dd0, odd ts for dd0, even ts for dd0, odd ts for dd1 cfi mode 2: - even ts for dd0, odd ts for dd0
peb 20550 pef 20550 application hints semiconductor group 280 01.96 data upstream C at the cfi interface the incoming data (data upstream) is written to the ram starting with du0 at the beginning of: time slot: 2 n for cfi mode 0 time slot: 2 n for cfi mode 1 time slot: 2 n for cfi mode 2 note: n is an integer number; the time slot number cant exceed the max. number of ts. the point of time to write the data to the ram is rcl period 1 and 3 for the cfi interface C at the pcm interface the data, that is to be transmitted on ts 2 n + 4 ... ts 2 n + 5 (for pcm mode 0) ts 4 n + 8 ... ts 4 n + 11 (for pcm mode 1) ts 8 n + 16 ... ts 8 n + 23 (for pcm mode 2) is read out of the ram as soon as time slot: 2 n (for pcm mode 0) 4 n + 1 (for pcm mode 1) 8 n + 3 (for pcm mode 2) is transmitted note: n is an integer number; the time slot number cant exceed the max. number of ts. the point of time to read the data from the ram, is rcl period 0, 4, 7 for the pcm interface due to internal delays, the rcl period at the beginning of time slot 2 n + 1 (for pcm 0), 4 n + 2 (for pcm mode1), 8 n + 4 for pcm mode 2) is no valid write cycle. the data is read out of the ram in two steps: pcm mode 0: in a block of 2 ts for txd0 1 then for txd2 3 pcm mode 1: in a block of 4 ts for txd0 then for txd2 pcm mode 2: in halfs of a 8 ts blocks for txd0 (first half) then for txd0 (second half)
peb 20550 pef 20550 application hints semiconductor group 281 01.96 considering a bit shift a bit shift will also influence switching delays. if the pcm frame is shifted relative to the frame signal, proceed as indicated below: shift only the pcm part of the figure (pcm line with the time slot numbers), relative to the rest of the figure, to the left. if the cfi frame is shifted relative to the framing signal, then the cfi part, including the figure of the rcl, and all read and write cycle points are shifted left relative to the pcm part. if cbsr:cds = 000 or 001, then the frame cfi part is shifted to the right. the figure so produced should be processed as previously described. note: if a bit shift has been installed while the pcm interface is already in the synchronous state, the following procedure has to be applied: 1.) unsynchronize the pcm interface by writing an invalid number to register pbnr 2.) resynchronize the pcm interface by writing the correct number to pbnr 5.4.4.3 example: switching of wide band isdn channels with the elic ? the elic shall switch 6 b-channels of a digital subscriber to an 8 mbit/s pcm highway guaranteeing frame integrity. the system uses the iom-2 interface to adapt to a multiple s-interface. no bit shift has to be applied. the tables below will help to determine the combination of input/output ports and time slots, that meet the requirements.
peb 20550 pef 20550 application hints semiconductor group 282 01.96 figure 99 itd08078 01234567 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 ts0 ts1 ts2 ts3 ts4 ts5 cfi rate = 2 mbit/s switching delay for epic, elic data downstream: r r rcl = 4 mhz possible ts0 ts1 ts2 ts3 ts4 ts5 ts6 ts7 ts8 ts9 ts10 ts11 ts12 ts13 ts14 ts15 ts16 pcm rate = 8 mbit/s ports rxd3 switched to dd0 pcm input ts 4...7 8...11 0...3 96...99 104...107 100...103 124...127 120...123 switched to cfi output time-slots 12...15 16...19 112...119 120...127 96...103 104...111 0...7 16...23 8...15 switched to dd1...3 rxd3 delay in [frames] 012 rxd3 rxd3 rxd3 rxd3 ts2 ts3 to dd0 to dd1 to dd2 to dd3 to dd0 ts5 ts4 to dd1 to dd2 to dd3 to dd0 to dd1 to dd2 to dd3 possible read cycles write cycles .. 6...31 8...31 4...31 30...31 28...31 - - 8...31 8...31 - - 30...31 30...31 28...31 4...31 6...31 6...31 . . 0...5 0...7 0...3 0...29 0...27 2...31 0...31 0...7 . 0...7 2...31 4...31 0...29 0...29 0...27 0...3 0...5 0...5 . - - - 0...1 - - 0...1 0...3 - - - - - - - - - - - - - configuration: pcm mode 2, cfi mode 0 pdc = 8 mhz, dcl 4 mhz pcm data rate = 8 mbit/s cfi data rate = 2 mbit/s rcl = 4 mhz ctar = 02 cbsr = 20 pofd = fo h h pofu = 18 h = pcsr = 00 no bit shift at pcm and cfi interface . . . . . . . .. . ts0 ... 3 7 ... ts4 ts1...15 ts8...11 ts3 ts2 ts3 ts2 ts3 ts2 ts4 ts5 ts4 ts5 ts4 ts5 ts6 ts7 ts7 ts6 ts7 ts6 ts7 ts6
peb 20550 pef 20550 application hints semiconductor group 283 01.96 figure 100 itd08079 01234567 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 ts0 pcm rate = 8 mbit/s switching delay for epic, r elic r data upstream: rcl = 4 mhz possible ts0 ts1 ts2 ts3 ts4 ts5 cfi rate = 2 mbit/s ports du3 switched to txd0 cfi input ts 2...3 4...5 0...1 26...27 30...31 28...29 switched to pcm output time-slots . . switched to txd0 du0...2 delay in [frames] 012 txd0 txd0 ts30 ts31 to du0 possible read cycles write cycles - - 120...127 32...127 48...127 40...127 . . 16...127 24...127 0...127 8...127 0...119 0...31 0...47 0...39 - - 0...15 0...23 - - - - - . . 22...23 24...25 ts20...23 to du0 ts1 ts0 to du1 ts31 ts30 ts0 ts1 to du2 ts31 ts30 ts0 ts1 to du3 ts31 ts30 ts0 ts1 to du1 to du2 to du3 ts1 ts2 ts3 ts4 ts5 ts6 ts7 ts8 ts9 ts10 ts11 ts12 ts13 ts14 ts15 ts16 ts17 ts18 ts16...19 ts24...27 ts28...31 txd0 txd0 txd0 txd0 ts36...39 ts32...35 - - 0...7 24...25 . . 28...29 30...31 26...27 0...1 4...5 2...3 - - . . 32...127 40...127 24...127 120...127 - 0...7 - - - - - 0...15 - - 0...39 0...31 0...119 8...127 0...127 16...127 . . 0...23
peb 20550 pef 20550 application hints semiconductor group 284 01.96 5.5 preprocessed channels the configurable interface (cfi) is at first sight a timeslot oriented serial interface similar to the pcm interface: a cfi frame contains a number of timeslots which can be switched to the pcm interface. but in addition to the switching functions, the cfi timeslots can also individually be configured as preprocessed channels. in this case, the contents of a cfi timeslot are directly, or after an eventual preprocessing, exchanged with the m p interface. the main application is the realization of iom (isdn oriented modular) and sld (subscriber line data) interfaces for the connection of subscriber circuits such as layer-1 transceivers (isdn line cards) or codec filter devices (analog line cards). also refer to chapter 5.1.1 . the preprocessing functions can be divided into 2 categories: monitor/feature control (mf) channels the monitor channel in iom and the feature control channel in sld applications are handled by the mf handler. this mf handler consists of a 16 byte bidirectional fifo providing intermediate storage for the messages to be transmitted or received. internal microprograms can be executed in order to control the communication with the connected subscriber circuit according to the iom or sld protocol. the exchange of individual data is carried out with only one channel at a time. the mf handler must therefore be pointed to that particular subscriber address (cfi timeslot). control/signaling (cs) channels the access to the command/indication (c/i) channel of an iom and to the signaling (sig) channel of an sld interface is realized by reading or writing to the corresponding control memory (cm) locations. in upstream direction, a change detection logic supervises the received c/i or sig values on all cs channels and reports all changes via interrupt to the m p. the mf and cs channel functions are inseparably linked to each other such that an mf channel must always be followed by a cs channel in the next following cfi timeslot. an mf channel must furthermore, be located on an even cfi timeslot, the associated cs channel must consequentially be always located on the following odd timeslot.
peb 20550 pef 20550 application hints semiconductor group 285 01.96 5.5.1 initialization of preprocessed channels the initialization of preprocessed channels is usually performed after the cm reset sequence during device initalization. resetting the cm sets all cfi timeslots to unassigned channels (cm code 0000). the initialization of preprocessed channels consists of writing appropriate cm codes to those cfi timeslots that should later be handled by the cs or mf handler. the initialization or re-initialization of preprocessed channels can of course also be carried out during the operational phase of the device. if the cfi shall be operated as a standard iom-2 interface, for example, the cfi frame consists of 32 timeslots, numbered from 0 to 31 (see figure 58 ). the b channels occupy timeslots 0 and 1 (iom channel 0), 4 and 5 (iom channel 1), 8 and 9 (iom channel 2), and so on. the b channels are normally switched to the pcm interface and are programmed only if the actual switching function is required. the monitor, d and c/i channels occupy timeslots 2 and 3 (iom channel 0), 6 and 7 (iom channel 1), 10 and 11 (iom channel 2), and so on. these timeslots must be initialized in both upstream and downstream directions for the desired functionality. in order to speed up this initialization, the elic can be set into the cm initialization mode as described in chapter 5.3.2 . there are several options available to cover the different applications like switched d channel, 6 bit signaling, etc. it should be noted that each pair of timeslots can individually be set for a specific application and that the up- and downstream directions can also be set differently, if required. d-channel handling scheme by sacco-a and d-channel arbiter this option applies for iom-2 channels where the even timeslot consists of an 8 bit monitor channel and the odd timeslot of a 2 bit d channel followed by a 4 bit c/i channel followed by the 2 monitor handshake bits mr and mx. the monitor channel is handled by the mf handler according to the selection of handshake or non-handshake protocol. if the handshake option is selected (iom-2), the mf handler controls the mr and mx bits according to the iom-2 specification. if the no handshake option is selected (iom-1), the mf handler sets both mr and mx bits to logical 1; the mr and mx bit positions can then, if required, be accessed together with the 4 bit c/i field via the even control memory address. the information of the d-bits are passed to the arbiter in upstream direction where a decision is made whether the demanding d-channel is allowed to use the sacco-a hdlc controller. in downstream direction the sacco-a sends d-channel information on a previously selected iom-channel.
peb 20550 pef 20550 application hints semiconductor group 286 01.96 the 4 bit c/i channel can be accessed by the m p for controlling layer-1 devices, or by the elic arbiter to transmit the available/blocked information to the requesting hdlc controller. in upstream direction each change in the c/i value is reported by interrupt to the m p and the cfi time slot address is stored in the cififo (refer to chapter 5.5.2 ). a c/i change is detected if the value of the current cfi frame is different from the value of the previous frame i.e. after, at most, 125 m s. to initialize two consecutive cfi timeslots for the arbiter d-channel handling scheme, the cm codes as given in table 43 must be used. decentral d-channel handling scheme this option applies for iom channels where the even timeslot consists of an 8 bit monitor channel and the odd timeslot of a 2 bit d-channel followed by a 4 bit c/i channel followed by the 2 monitor handshake bits mr and mx. the monitor channel is handled by the mf handler according to the selection of handshake or non-handshake protocol. if the handshake option is selected (iom-2), the mf handler controls the mr and mx bits according to the iom-2 specification. if the no handshake option is selected (iom-1), the mf handler sets both mr and mx bits to logical 1; the mr and mx bit positions can then, if required, be accessed together with the 4 bit c/i field via the even control memory address. the d-channel is not processed at all, i.e. the input in upstream direction is ignored and the output in downstream direction is set to high impedance. external d-channel controllers, e.g. 2 idecs peb 2075, can then be connected to each iom interface in order to realize decentral d-channel processing. the 4 bit c/i channel can be accessed by the p for controlling layer-1 devices. in upstream direction each change in the c/i value is reported by interrupt to the p and the cfi timeslot address is stored in the cififo (refer to chapter 5.5.2 ). a c/i change is detected if the value of the current cfi frame is different from the value of the previous frame i.e. after at most 125 m s. table 43 control memory codes and data for the arbiter d-channel handling cheme cm address cm code cm data even timeslot downstream odd timeslot downstream even timeslot upstream odd timeslot upstream 1010 1011 1000 0000 11 c/i 11 b xxxxxxxx b xx c/i xx b xxxxxxxx b
peb 20550 pef 20550 application hints semiconductor group 287 01.96 to initialize two consecutive cfi timeslots for the decentral d-channel handling scheme, the cm codes as given in table 44 must be used. application hint: if the d-channel is idle and if it is required to transmit a 2 bit idle code in the d-channel (e.g. during the layer-1 activation or for testing purposes), the 6 bit signaling handling scheme can be selected for the downstream direction. the 2 d bits together with the 4 c/i bits can then be written to via the even control memory address. if the high impedance state is needed again, the decentral d-channel scheme has to be selected again. example in cfi mode 0, timeslots 2 and 3 of port 3 are to be initialized for decentral d-channel handling: w:madr = 1100 0011 b ; c/i value 0000 w:maar = 0000 1110 b ; downstream even ts, port 3 timeslot 2 w:macr = 0111 1000 b ; write cm code + data fields, cm code 1000 w:madr = xxxx xxxx b ; dont care w:maar = 0000 1111 b ; downstream odd ts, port 3 timeslot 3 w:macr = 0111 1011 b ; write cm code + data fields, cm code 1011 w:madr = 1111 1111 b ; expected c/i value 1111 w:maar = 1000 1110 b ; upstream even ts, port 3 timeslot 2 w:macr = 0111 1000 b ; write cm code + data fields, cm code 1000 w:madr = xxxx xxxx b ; dont care w:maar = 1000 1111 b ; upstream odd ts, port 3 timeslot 3 w:macr = 0111 0000 b ; write cm code + data fields, cm code 0000 table 44 control memory codes and data for the decentral d-channel handling scheme cm address cm code cm data even timeslot downstream odd timeslot downstream even timeslot upstream odd timeslot upstream 1000 1011 1000 0000 11 c/i 11 b xxxxxxxx b xx c/i xx b xxxxxxxx b
peb 20550 pef 20550 application hints semiconductor group 288 01.96 after these programming steps, the control memory will have the following content: figure 101 control memory contents for decentral d-channel handling central d-channel handling scheme this option applies for iom channels where the even timeslot consists of an 8 bit monitor channel and the odd timeslot of a 2 bit d-channel followed by a 4 bit c/i channel followed by the 2 monitor handshake bits mr and mx. the monitor channel is handled by the mf handler according to the selected protocol, handshake or non-handshake. if the handshake option is selected (iom-2), the mf handler controls the mr and mx bits according to the iom-2 specification. if the non- handshake option is selected (iom-1), the mf handler sets both mr and mx bits to itd08080 11 10 0 code field data field control memory cfi frame 0 127 up- stream stream down- 127 0 p0, ts2 0x p0, ts3 0 0 1 01 p0, ts3 p0, ts2 0 0 1 11 11 1 xxxxxxx 1 0 00 1 x x x x x x x 11 00 10 x 0 1 c/i value c/i value
peb 20550 pef 20550 application hints semiconductor group 289 01.96 logical 1; the mr and mx bit positions can then, if required, be accessed together with the 4 bit c/i field via the even control memory address. the d-channel can be switched as a 16 kbps channel to and from the pcm interface in order to be handled by a centralized d-channel processing unit. the 4 bit c/i channel can be accessed by the m p for controlling layer-1 devices. in the upstream direction each change in the c/i value is reported by interrupt to the m p and the cfi timeslot address is stored in the cififo (refer to chapter 5.5.2 ). a c/i change is detected if the value of the current cfi frame is different from the value of the previous frame i.e. after at most 125 m s. to initialize two consecutive cfi timeslots for the decentral d-channel handling scheme, the cm codes as given in table 45 must be used. the switching codes specify the pcm sub-timeslot positions of the 16 kbit/s transfer. note that the 2 d bits are always located on bits 7 6 of a cfi timeslot, the cscr:sc#1, sc#0 bits must therefore be set to 00 (see chapter 5.4.2 ). 1) this code sets the d bits to high impedance table 45 control memory codes and data for the central d-channel handling scheme cm address cm code cm data even timeslot downstream odd timeslot downstream even timeslot upstream odd timeslot upstream 1010 switch. code 1000 switch. code 11 c/i 11 b pointer to pcm ts xx c/i xx b pointer to pcm ts table 46 control memory codes for the switching a 16 kbit/s cfi channel to or from the pcm interface transferred channel pcm bit positions downstream cm codes upstream cm codes unassigned channel 16 kbit/s/ bits 7 6 16 kbit/s/ bits 5 4 16 kbit/s/ bits 3 2 16 kbit/s/ bits 1 0 1011 1) 0111 0110 0101 0100 0000 0111 0110 0101 0100
peb 20550 pef 20550 application hints semiconductor group 290 01.96 application hints: 1) if the d channel is idle and if it is required to transmit a 2 bit idle code in the d channel (e.g. during the layer-1 activation or for testing purposes), the 6 bit signaling handling scheme can be selected for the downstream direction. the 2 d bits together with the 4 c/i bits can then be written to via the even control memory address. if the high impedance state is needed again, the decentral d channel scheme has to be selected again. 2) the central d channel scheme has primarily been designed to switch the 16 kbit/s d channel to the pcm interface and to process the c/i channel by the local m p. for some applications however, it is advantageous to switch the 2 d bits together with the 4 c/i bits transparently to and from the pcm interface. the monitor channel shall, however, still be handled by the internal mf handler. this function might be useful if two layer-1 transceivers, operated in repeater mode, shall be connected via a pcm link. for these applications, the odd control memory address is written with the 64 kbit/s switching code 0001, the cm data field pointing to the desired pcm timeslot. since also the mr and mx bits are being switched, these must be carefully considered: in upstream direction the two least significant bits of the pcm timeslot can be set to high impedance via the tristate field; in downstream direction the two least significant bits of the pcm timeslot must be received at a logical 1 level since these bits will be logical anded at the cfi with the downstream mr and mx bits generated by the mf handler. example in cfi and pcm modes 0, cfi timeslots 10 and 11 of port 1 shall be initialized for central d channel handling, the downstream d channel shall be switched from pcm port 0, ts5, bits 5 4 and the upstream d channel shall be switched to pcm port 2, ts8, bits 3 2: w:madr = 1100 0011 b ; c/i value 0000 w:maar = 0010 1010 b ; downstream even ts, port 1 timeslot 10 w:macr = 0111 1010 b ; write cm code + data fields, cm code 1010 w:madr = 0001 0001 b ; pointer to pcm port 0, ts5 w:maar = 0010 1011 b ; downstream odd ts, port 1 timeslot 11 w:macr = 0111 0110 b ; write cm code + data fields, cm code 0110 w:madr = 1111 1111 b ; expected c/i value 1111 w:maar = 1010 1010 b ; upstream even ts, port 1 timeslot 10 w:macr = 0111 1000 b ; write cm code + data fields, cm code 1000
peb 20550 pef 20550 application hints semiconductor group 291 01.96 w:madr = 1010 0100 b ; pointer to pcm port 2, ts8 w:maar = 1010 1011 b ; upstream odd ts, port 1 timeslot 11 w:macr = 0111 0101 b ; write cm code + data fields, cm code 0101 w:madr = 0000 0010 b ; set bits 3 2 to low z and rest of timeslot to high z w:maar = 1010 0100 b ; pointer to pcm port 2, ts8 w:macr = 0110 0000 b ; write dm cf, single channel tristate command after these programming steps, the elic memory will have the following contents: figure 102 control memory contents for central d-channel handling itd08081 1 10 0 code field data field control memory cfi frame 0 127 up- stream stream down- 1 1 0 0 0 127 0 00 1 code field data field 127 0 frame pcm up- stream 0 127 down- stream data memory p1, ts10 01 0 1 1 0 0 001 p2, ts8 p0, ts5 bits 5, 4 1 1 00000 1 10 0 bits 3, 2 p1, ts11 1111111 101010 c/i value 0 p1, ts11 p1, ts10 1 0 0 11 c/i value
peb 20550 pef 20550 application hints semiconductor group 292 01.96 6-bit signaling channel scheme this option is intended for iom channels where the even timeslot consists of an 8 bit monitor channel and the odd timeslot of a 6 bit signaling channel followed by the 2 monitor handshake bits mr and mx. the monitor channel is handled by the mf handler according to the selected protocol, handshake or non-handshake. if the handshake option is selected (iom-2), the mf handler controls the mr and mx bits according to the iom-2 specification. if the non- handshake option is selected (iom-1), the mf handler sets both mr and mx bits to logical 1; the mr and mx bit positions can then, if required, be accessed together with the 6 bit sig field via the even control memory address. the 6 bit sig channel can be accessed by the m p for controlling codec filter devices. in upstream direction each valid change in the sig value is reported by interrupt to the m p and the cfi timeslot address is stored in the cififo (refer to chapter 5.5.1 ). the change detection mechanism consists of a double last look logic with a programmable period. to initialize two consecutive cfi timeslots for the 6 bit signaling channel scheme, the cm codes as given in table 47 must be used: application hint: for some applications it is useful to switch the 6 sig bits transparently to and from the pcm interface. the monitor channel shall, however, still be handled by the internal mf handler. for this purpose, a slightly modified central d channel scheme can be used. this mode, which has primarily been designed to switch the 16 kbit/s d channel to the pcm interface, can be modified as follows: the odd control memory address is written with the 64 kbit/s switching code 0001, the cm data field pointing to the desired pcm timeslot. since the mr and mx bits are being switched, these must be carefully considered: in upstream direction the two least significant bits of the pcm timeslot can be set to high impedance via the tristate field; in downstream direction the two least significant bits of the pcm timeslot must be received at a logical 1 level since these bits will be logical anded at the cfi with the downstream mr and mx bits generated by the mf handler. table 47 control memory codes and data for the 6 bit signaling channel handling scheme cm address cm code cm data even timeslot downstream odd timeslot downstream even timeslot upstream odd timeslot upstream 1010 1011 1010 1010 sig 11 b xxxxxxxx b actual value xx b stable value xx b
peb 20550 pef 20550 application hints semiconductor group 293 01.96 example in cfi mode 0, timeslots 2 and 3 of port 0 shall be initialized for 6 bit signaling channel handling: w:madr = 0100 0111 b ; sig value 010001 w:maar = 0000 1000 b ; downstream even ts, port 0 timeslot 2 w:macr = 0111 1010 b ; write cm code + data fields, cm code 1010 w:madr = xxxx xxxx b ; dont care w:maar = 0000 1001 b ; downstream odd ts, port 0 timeslot 3 w:macr = 0111 1011 b ; write cm code + data fields, cm code 1011 w:madr = 1101 1111 b ; expected sig value 110111 w:maar = 1000 1000 b ; upstream even ts, port 0 timeslot 2 w:macr = 0111 1010 b ; write cm code + data fields, cm code 1010 w:madr = 1101 1111 b ; expected sig value 110111 w:maar = 1000 1001 b ; upstream odd ts, port 0 timeslot 3 w:macr = 0111 1010 b ; write cm code + data fields, cm code 1010
peb 20550 pef 20550 application hints semiconductor group 294 01.96 after these programming steps, the elic memory will have the following contents: figure 103 control memory contents for 6-bit signaling channel handling itd08082 10 code field data field control memory cfi frame 0 127 up- stream stream down- 127 0 p0, ts2 p0, ts3 0 0 1 01 p0, ts3 p0, ts2 0 1 111 1 1 0 0 1 x x x x x x x 11 x sig value 11 11 0 1 0001 10 sig value 1 actual value stable value 101 11 1 11
peb 20550 pef 20550 application hints semiconductor group 295 01.96 8-bit signaling scheme this option is intended for sld channels where the even timeslot consists of an 8 bit feature control channel and the odd timeslot of an 8 bit signaling channel. the feature control channel is handled by the mf handler according to the selected protocol, handshake or non-handshake. note that only the non-handshake mode makes sense in sld applications. the 8 bit sig channel can be accessed by the m p for controlling codec filter devices. in upstream direction each valid change in the sig value is reported by interrupt to the m p and the cfi timeslot address is stored in the cififo (refer to chapter 5.5.2 ). the change detection mechanism consists of a double last look logic with a programmable period. to initialize two consecutive cfi timeslots for the 8 bit signaling channel scheme, the cm codes as given in table 48 must be used: example in cfi mode 3, downstream timeslots 2 and 3 and upstream timeslots 6 and 7 of port 0 shall be initalized for 8 bit signaling channel handling: w:madr = 0100 0101 b ; sig value 0100 0101 w:maar = 0001 0000 b ; downstream even ts, port 0 timeslot 2 w:macr = 0111 1011 b ; write cm code + data fields, cm code 1011 w:madr = xxxx xxxx b ; dont care w:maar = 0001 0001 b ; downstream odd ts, port 0 timeslot 3 w:macr = 0111 1011 b ; write cm code + data fields, cm code 1011 w:madr = 1101 0110 b ; expected sig value 1101 0110 w:maar = 1011 0000 b ; upstream even ts, port 0 timeslot 6 w:macr = 0111 1011 b ; write cm code + data fields, cm code 1011 w:madr = 1101 0110 b ; expected sig value 1101 0110 w:maar = 1011 0001 b ; upstream odd ts, port 0 timeslot 7 w:macr = 0111 1011 b ; write cm code + data fields, cm code 1011 table 48 control memory codes and data for the 8-bit signaling cm address cm code cm data even timeslot downstream odd timeslot downstream even timeslot upstream odd timeslot upstream 1010 1011 1011 1011 sig b xxxxxxxx b actual value b stable value b
peb 20550 pef 20550 application hints semiconductor group 296 01.96 summary of preprocessed channel codes figure 104 a preprocessed channel codes itd05845 decentral d channel handling central d channel handling signaling (e.g. analog r iom ) 6 bit 8 bit signaling (e.g. sld) sacco_a d channel handling dd application even control memory address maar = 0......0 code field macr = 0111... data field madr = ...... madr = ...... data field macr = 0111... code field maar = 0......1 odd control memory address output at the configurable interface downstream preprocessed channels even time-slot odd time-slot 1 0 1 0 11 1 c/i m r when using handshaking, set mr = 1 sig 0 1 0 1 1 0 1 0 sig 11 c/i 1 1 1 0 1 0 1 1 1 1 000 11 1 c/i x x x 1 1 0 1 x x xx x xx xx x 1 0 11 xx x xx xx x 1 0 11 xx x xx xx x 1 0 11 xx x pointer to a pcm time-slot pcm code for a 2 bit sub. time-slot mmmmmm mm c/i mm monitor channel control channel control channel monitor channel m m c/i m m m m m m m m dd mmmmmm mm sig mm monitor channel control channel mmmmmm mm sig feature control channel signaling channel d d mmmmmm mm c/i mm monitor channel control channel --
peb 20550 pef 20550 application hints semiconductor group 297 01.96 figure 104 b preprocessed channel codes itd05846 signaling channel feature control channel sig m m m m m m m m control channel monitor channel m m sig m m m m m m m m d d mmmmmm mm c/i mm monitor channel control channel control channel monitor channel m m c/i m m m m m m m m 1 1 0 1 0 1 0 1 xx xx x 0000 xx x c/i 1 1 1 0 0 0 1 1 1 1 000 11 1 c/i x x 0 1 0 1 1 0 11 odd time-slot even time-slot upstream preprocessed channels input from the configurable interface odd control memory address maar = 1......1 code field macr = 011... data field madr = ...... madr = ...... data field macr = 0111... code field maar = 1......1 even control memory address (e.g. sld) signaling 8 bit 6 bit iom ) r (e.g. analog signaling handling d channel central handling d channel decentral sig actual value sig stable value xx -- : monitor channel bits, these bits are treated by the monitor/feature control handler m - : inactive sub. time-slot, in downstream direction these bits are tristated (omdr : cos = 0) or set to logical 1 (omdr :cos = 1) c/i : command/indication channel, these bits are exchanged between the cfi in/output and the cm data field. a change of the c/i bits in upstream direction causes an interrupt (ista : sfi). the address of the change is stored in the cififo d : d channel, these d channel bit switched to and from the pcm interface, or handled by the sacco_a, it the d channel arbiter is enabled. sig : signaling channel, these bits are exchanged between the cfi in/output and tne cm data field. the sig value which was present in the last frame is stored as the actual value in the even address cm location. the stable value is updated if a valid change in the actual value has been detected according to the last look algorithm. a change of the sig stable value in upstream direction causes an interrupt (ista : cfi). the address of the change is stored in the cififo. actual value stable value time-slot a 2 bit sub. pcm code for pointer to a pcm time-slot du application sig actual value sig stable value
peb 20550 pef 20550 application hints semiconductor group 298 01.96 5.5.2 control/signaling (cs) handler if the configurable interface (cfi) of the elic is operated as iom or sld interface, it is necessary to communicate with the connected subscriber circuits such as layer-1 transceivers (isdn line cards) or codec filter devices (analog line cards) over the command/indication (c/i) or the signaling (sig) channel. in order to simplify this task the elic has implemented the control/signaling handler (cs handler). in downstream direction, the 4, 6 or 8 bit c/i or sig value can simply be written to the control memory data field which will then be repeatedly transmitted in every frame to the subscriber circuit until a new value is loaded. note that the downstream c/i or sig value must always be written to the even cm address in order to be transmitted in the subsequent odd cfi timeslot! in upstream direction a change detection mechanism is active to search for changes in the received c/i or sig values. upon a change, the address of the involved subscriber is stored in a 9 byte deep fifo (cififo) and an interrupt (ista:sfi) is generated. the m p can then first determine the cm address by reading the fifo before reading the new c/i or sig value out of the control memory. the address fifo serves to increase the latency time for the m p to react to sfi interrupts. if several c/i or sig changes occur before the m p executes the sfi interrupt handling routine, the addresses of the first 9 changes are stored in the cififo and the corresponding c/i or sig values are stored in the control memory (cm). if more than 9 changes occur before the m p reads the cififo, these additional changes are no longer updated in the control memory. this is to prevent any loss of change information. these additional changes remain pending at the serial interface. as soon as the m p reads the cififo, and thus, empties locations of the fifo, these pending changes are sequentially written to the cm and the corresponding addresses to the fifo. it is thus ensured that no change information is lost even if, for example, all 32 subscribers simultaneously generate a change in their c/ i or sig channel! cfi timeslots which should be processed by the cs handler must first be initialized as mf/cs channels with appropriate codes in the control memory code field (refer to chapter 5.5.1 ).
peb 20550 pef 20550 application hints semiconductor group 299 01.96 5.5.2.1 registers used in conjunction with the cs handler in detail, the following register bits are used in conjunction with the cs handler: signaling fifo read reset value: 0xxxxxxx b the 9 byte deep cififo stores the addresses of cfi timeslots in which a c/i and/or a sig value change has taken place. this address information can then be used to read the actual c/i or sig value from the control memory. sbv: signaling byte valid; if sbv = 1, the sad6 0 bits indicate a valid subscriber address. the polarity of sbv is chosen such that the whole 8 bits of the cififo can be copied to the maar register in order to read the upstream c/i or sig value from the control memory. sad6 0: subscriber address bits 6 0; the cm address which corresponds to the cfi timeslot where a c/i or sig value change has taken place is encoded in these bits. for c/i channels sad6 0 point to an even cm address (c/i value), for sig channels sad6 0 point to an odd cm address (stable sig value). timer register write reset value: 00 h the elic timer can be used for 3 different purposes: timer interrupt generation (ista:tig), fsc multiframe generation (cmd2:fc2 0 = 111), and last look period generation. in case of last look period generation, the following functions are provided: ssr: signaling sampling rate; if ssr = 1, the last look period is fixed to 125 m s, i.e. the timer is not used at all for the last look logic. the value programmed to tval has then no influence on the last look period. the timer can then still be used for timer interrupt generation, and/or fsc multiframe generation, with a period as defined by tval6 0. if ssr = 0, the last look period is defined by tval6 0. note that if the timer is used, it must also be started with cmdr:st = 1. bit 7 bit 0 cififo sbv sad6 sad5 sad4 sad3 sad2 sad1 sad0 bit 7 bit 0 timr ssr tval6 tval5 tval4 tval3 tval2 tval1 tval0
peb 20550 pef 20550 application hints semiconductor group 300 01.96 tval6 0: timer value bits 6 0; the timer period, equal to (1+tval60) 250 m s, is programmed here. it can thus be adjusted within the range of 250 m s up to 32 ms. the timer is started as soon as cmdr:st is set to 1 and stopped by writing the timr register or by selecting omdr:oms0 = 0. if the timer is used to generate the last look period, it can still be used for timer interrupt generation and/or fsc multiframe generation if it is acceptable that all three applications use the same timer value. command register epic ? write reset value: 00 h writing a logical 1 to a cmdr_e register bit starts the respective operation. the signaling handler uses two command bits: st: start timer; must be set to 1 if the last look period is defined by timr:tval6 0, i.e. if timr:ssr = 0. note that if timr:ssr = 1, the timer need not be started. cfr: cififo reset; setting cfr to logical 1 resets the signaling fifo within 2 rcl periods, i.e. all entries and the ista:sfi bit are cleared. status register epic ? read reset value: 05 h the status register star_e displays the current state of certain events within the elic. the star_e register bits do not generate interrupts and are not modified by reading star_e. the following bit is indirectly used by the signaling handler: tac: timer active; the timer is running if tac is set to logical 1, the timer is not running if tac is set to logical 0. note that the timer is only necessary for signaling channels (not c/i) and when using a last look period greater or equal to 250 m s. bit 7 bit 0 cmdr_e 0 st tig cfr mft1 mft0 mfso mffr bit 7 bit 0 star_e mac tac pss mfto mfab mfae mfrw mffe
peb 20550 pef 20550 application hints semiconductor group 301 01.96 interrupt status register epic ? read reset value: 00 h the ista_e register should be read after an interrupt in order to determine the interrupt source. in connection with the signaling handler one maskable (mask_e) interrupt bit is provided by the elic in the ista_e register: sfi: signaling fifo interrupt; this bit is set to logical 1 if there is at least one valid entry in the cififo indicating a change in a c/i or sig channel. reading ista_e does not clear the sfi bit. instead sfi is cleared (logical 0) if the cififo is empty which can be accomplished by reading all valid entries of the cififo or by resetting the cififo by setting cmdr:cfr to 1. note that the mask_e:sfi bit only disables the interrupt pin (int ); the ista_e:sfi bit will still be set to logical 1. 5.5.2.2 access to downstream c/i and sig channels if two consecutive downstream cfi timeslots, starting with an even timeslot number, are programmed as mf and cs channels, the m p can write a 4, 6 or 8 bit wide c/i or sig value to the even addressed downstream cm data field. this value will then be transmitted repeatedly in the odd cfi timeslot until a new value is loaded. this value, first written into madr, can be transferred to the cm data field using the memory operation codes macr:moc = 111x or macr:moc = 1001 (refer to chapter 5.3.3.3 ). the code macr:moc = 111x applies if the code field has not yet been initialized with a cs channel code. writing to macr with macr:rws = 0 will then copy the cs channel code written to macr:cmc3 cmc0 to the cm code field and the value written to madr to the cm data field. the cm address (cfi timeslot) is specified by maar according to figure 84 . the code macr:moc = 1001 applies if the code field has already been properly initialized with a cs channel code. in this case only the madr content will be copied to the cm data field addressed by maar. bit 7 bit 0 ista_e tin sfi mffi mac pfi pim sin sov
peb 20550 pef 20550 application hints semiconductor group 302 01.96 the value written to madr should have the following format: 4 bit c/i value: madr = 1 1 _ _ _ _ 1 1 b 6 bit sig value: madr = _ _ _ _ _ _ 1 1 b 8 bit sig value: madr = _ _ _ _ _ _ _ _ b examples in cfi mode 0 the downstream timeslots 6 and 7 of port 2 shall be initialized as mf and cs channels, 6 bit signaling scheme. the initialization value shall be 010101: w:madr = 0101 0111 b ; sig value 010101 w:maar = 0001 1100 b ; downstream, port 2, timeslot 6 w:macr = 0111 1010 b ; write cm code + data fields, cm code 1010 w:madr = xxxx xxxx b ; dont care w:maar = 0001 1101 b ; downstream, port 2, timeslot 7 w:macr = 0111 1011 b ; write cm code + data fields, cm code 1011 the above programming sequence can for example be performed during the initialization phase of the elic. once the cfi timeslots have been loaded with the appropriate codes ('1010' in timeslot 6 and 1011 in timeslot 7), an access to the downstream sig channel (timeslot 7) can be accomplished simply by writing a new value to the address of timeslot 6: w:madr = 1100 1111 b ; new sig value 110011 w:maar = 0001 1100 b ; downstream, port 2, timeslot 6 w:macr = 0100 1000 b ; write cm df, moc = 1001 5.5.2.3 access to the upstream c/i and sig channels if two consecutive upstream cfi timeslots, starting with an even timeslot number, are programmed as mf and cs channels, the m p can read the received 4, 6 or 8 bit c/i or sig values simply by reading the upstream cm data field. two cases can be distinguished: when a 4 bit command/indication handling scheme is selected, the c/i value received in the odd cfi timeslot can be read from the even cm address. this value is sampled in each frame (every 125 m s). each change is furthermore indicated by an ista_e:sfi interrupt and the address of the corresponding even cm location is stored in the cififo. since the msb of the cififo is set to 1 for a valid entry (sbv = 1), the value read from the cififo can directly be copied to maar in order to read the upstream cm data field which also requires an msb set to 1 (u/d = 1). when a 6 or 8 bit signaling scheme is selected, the received sig value is sampled at intervals of 125 m s or (tval + 1) 250 m s and stored as the actual value at the even cm address. the m p can access the actual value simply by reading this even cm data field location. additionally, a stable value, based on the double last look algorithm is generated: in order to assure that erroneous bit changes at the sampling time point do
peb 20550 pef 20550 application hints semiconductor group 303 01.96 not initiate a definite change, the values of two consecutive sampling points are compared with the current old stable value. the stable value is then only updated if both new values are identical and differ from the old stored value. the stable value can be read from the odd cm data field location. each change in the stable value is furthermore indicated by an ista_e:sfi interrupt and the address of the corresponding odd cm location is stored in the cififo. since the msb of the cififo is set to 1 for a valid entry (sbv = 1), the value read from the cififo can directly be copied to maar in order to read the upstream cm data field, which also requires an msb set to 1 (u/d = 1). note: the sampling interval is selected in the timr register (refer to chapter 5.5.2.1 ). if the sampling interval is set to 125 m s (timr:ssr = 1), it is not necessary to start the timer to operate the change detection logic. if, however, the last look period is determined by timr:tval6 0 (timr:ssr = 0) it is required to start the timer (cmdr:st = 1) to operate the change detection logic and to generate sfi interrupts. examples in cfi mode 0 the upstream timeslots 6 and 7 of port 2 shall be initialized as mf and cs channels, 6 bit signaling scheme, the expected value from the codec after power up shall be 011101: w:madr = 0111 0111 b ; expected actual value 011101 w:maar = 1001 1100 b ; upstream, port 2, timeslot 6 w:macr = 0111 1010 b ; write cm code + data fields, cm code 1010 w:madr = 0111 0111 b ; expected stable value 011101 w:maar = 1001 1101 b ; upstream, port 2, timeslot 7 w:macr = 0111 1010 b ; write cm code + data fields, cm code 1010 the above programming sequence can for example be performed during the initialization phase of the elic. at this stage the cfi is not operational (omdr = 80 h ), i.e. the values received at the cfi are ignored.
peb 20550 pef 20550 application hints semiconductor group 304 01.96 if the expected value 011101 is actually received upon activation of the cfi (e.g. omdr = eeh), no interrupt will be generated at this moment. but the change detection is now enabled and each valid change in the received sig value (e.g. new value 001100) will generate an interrupt, with the address being stored in the cififo. the reaction of the m p to such an event would then look like this: r:ista_e = 0100 0000 b ; sfi interrupt r:cififo = 1001 1101 b ; address of upstream, port 2, timeslot 7 w:maar = 1001 1101 b ; copy the address from cififo to maar w:macr = 1100 1000 b ; read back command for cm df, moc = 1001 wait for star_e:mac = 0 r:madr = 0011 00xx b ; read new sig value (e.g. 001100) wait for further ista_e:sfi interrupts 5.5.3 monitor/feature control (mf) handler if the configurable interface cfi of the elic is configured as iom or sld interface, it is necessary to communicate with the connected subscriber circuits such as layer-1 transceivers (isdn line cards) or codec filter devices (analog line cards) over the monitor channel (iom) or feature control channel (sld). in order to simplify this task the elic has implemented the monitor/feature control (mf) handler which autonomously controls and supervises the data transfer via these channels. the communication protocol used in an mf channel is interface and subscriber circuit specific. three cases can be distinguished: iom ? -2 interface protocol in this case the monitor channel protocol is a handshake procedure used for high speed information exchange between the elic and other devices such as the iec-q (peb 2091), sbcx (peb 2081) or sicofi2 (peb 2260). the monitor channel operates on an asynchronous basis.while data transfers on the iom - 2 interface take place synchronized to the iom frame, the flow of data is controlled by a handshake procedure based on the monitor channel receive (mr) and the monitor channel transmit (mx) bits located at the end of the fourth timeslot of the respective iom - 2 channel. for the transmission of a data byte for example, the data is placed onto the downstream monitor channel and the mx bit is activated. this byte will then be transmitted repeatedly once per 8 khz frame until the receiver acknowledges the transfer via the upstream mr bit. a detailed description of the iom-2 monitor channel operation can be found in the iom-2 interface reference guide.
peb 20550 pef 20550 application hints semiconductor group 305 01.96 iom ? -1 interface protocol in this case the monitor channel protocol is a non handshake procedure which can be used to exchange one byte of information at a time between the elic and a layer-1 device such as the ibc (peb 2095) or the iec-t (peb 2090). data bytes to be transmitted are sent once in the downstream monitor channel. since the monitor channel is idle (ff) when no data is being transmitted, the receiving device accepts only valid data bytes which are different from ff. if a message shall be sent back to the elic, this must occur in the frame following the frame of reception. sld interface protocol the transfer of control information over the feature control channel of an sld interface e.g. for programming the coefficients to a sicofi (peb 2060) device is also performed without a handshake procedure. data is transmitted and received synchronous to the 8 khz frame at a speed of one data byte per frame. the mf handler of the elic supports all three kinds of protocols. a bidirectional 16 byte fifo, the mffifo, serves as data buffer for outgoing and incoming mf messages in all protocol modes. this implies that the mf communication is always performed on a half- duplex basis. differentiation between iom-2 and iom-1/sld modes is made via the mf protocol selection bit mfps in the operation mode register omdr . since the iom-1 and sld protocols are very similar, they are treated by the elic in exactly the same way i.e. without handshake protocol. the only processing difference concerns the involved upstream timeslot when receiving data: when configured as iom interface (cfi modes 0, 1 or 2), the cfi ports consist of separate upstream (du) and downstream (dd) lines. in this case mf data is transmitted on dd and received on du of the same cfi timeslot. when configured as sld interface (cfi mode 3), the cfi ports consist of bidirectional lines (sip). the first four timeslots of the frame are used as downstream timeslots and the last four as upstream timeslots. in this case the mf data is transmitted in the downstream feature control timeslot and received on the same cfi line but four timeslots later in the upstream feature control timeslot. cfi timeslots which should be processed by the mf handler must first be initialized as mf/cs channels with appropriate codes in the control memory code field (refer to chapter 5.5.1 ). except for broadcast operation, communication over the mf channel is only possible with one subscriber circuit at a time. the mf handler must therefore be pointed to that particular timeslot via the address register mfsar . normally mf channel transfers are initiated by the elic (master). the subscriber circuits (slaves) will only send back monitor messages upon a request from the master device.
peb 20550 pef 20550 application hints semiconductor group 306 01.96 in iom-2 applications, however, (active handshake protocol), it is also possible that a slave device requests a data transfer e.g. when an iec-q device has received an eoc message over the u interface. for these applications the elic has implemented a search mechanism that looks for active handshake bits. when such a monitor channel is found, the m p is interrupted (ista_e:mac) and the address of the involved mf channel is stored in a register ( mfair ). the mf handler can then be pointed to that channel by copying the contents of mfair to mfsar and the actual message transfer can take place. 5.5.3.1 registers used in conjunction with the mf handler in detail, the following registers are involved when performing mf channel transfers: operation mode register read/write reset value: 00 h mfps: mf channel protocol selection; mfps = 0: handshake facility disabled; to be used for sld and iom-1 applications. mfps = 1: handshake facility enabled; to be used for iom-2 applications. monitor/feature control channel fifo read/write reset value: empty the 16 byte bidirectional mffifo provides intermediate storage for data bytes to be transmitted or received over the monitor or feature control channel. note: the data transfer over an mf channel is half-duplex i.e. if a transmit + receive command is issued, the transmit section of the transfer must first be completed before the receive section starts. mfd7 0: mf data bits 7 0; mfd7 (msb) is the first bit to be sent over the serial cfi, mfd0 (lsb) the last. bit 7 bit 0 omdr: oms1 oms0 psb ptl cos mfps csb rbs bit 7 bit 0 mffifo: mfd7 mfd6 mfd5 mfd4 mfd3 mfd2 mfd1 mfd0
peb 20550 pef 20550 application hints semiconductor group 307 01.96 mf channel subscriber address register write reset value: undefined the exchange of monitor data normally takes place with only one subscriber circuit at a time. this register serves to point the mf handler to that particular cfi timeslot. mftc1 0: mf channel transfer control 1 0; these bits, in addition to cmdr:mft1,0 and omdr:mfps control the mf channel transfer as indicated in table 49 . sad5 0: subscriber address 5 0; these bits define the addressed subscriber. the cfi timeslot encoding is similar to the one used for control memory accesses using the maar register (see figure 84 ). cfi timeslot encoding of mfsar derived from maar: maar:ma7 selects between upstream and downstream cm blocks. this information is not required since the transfer direction is defined by cmdr (transmit or receive). maar:ma0 selects between even and odd timeslots. this information is also not required since mf channels are always located on even timeslots. bit 7 bit 0 mfsar: mftc1 mftc0 sad5 sad4 sad3 sad2 sad1 sad0 maar: ma7 ma6 ma5 ma4 ma3 ma2 ma1 ma0 mfsar: mftc1 mftc0 sad5 sad4 sad3 sad2 sad1 sad0
peb 20550 pef 20550 application hints semiconductor group 308 01.96 example in cfi mode 0, iom channel 5 (timeslot 16 19) of port 2 shall be addressed for a transmit monitor transfer: mfsar = 0010 0110 b ; the monitor channel occupies timeslot 18 (10010 b ) of port 2 (10 b ) mf channel active indication register read reset value: undefined this register is only used in iom-2 applications (active handshake protocol) in order to identify active monitor channels when the search for active monitor channels command (cmdr:mfso) has been executed. so: mf channel search on; this bit indicates whether the elic is still busy looking for an active channel (1) or not (0). sad5 0: subscriber address 5 0; after an ista:mac interrupt these bits point to the port and timeslot where an active channel has been found. the coding is identical to mfsar:sad5 sad0. the contents of mfair can directly be copied to mfsar in order to point the mf handler to the channel which requests a monitor receive operation. command register epic ? read reset value: 00 h writing to cmdr starts the respective monitor channel operation. mft1 0: mf channel transfer control bits 1, 0; these bits start the monitor transfer enabling the contents of the mffifo to be exchanged with the subscriber circuits as specified in mfsar. the function of some commands depends furthermore on the selected protocol (omdr:mfps). table 49 summarizes all available mf commands. mfso: mf channel search on; if set to 1, the elic starts to search for active mf channels. active channels are characterized by an active mx bit (logical 0) sent by the remote transmitter. if such a channel is found, the corresponding address is stored in mfair and an ista_e:mac bit 7 bit 0 mfair: 0 so sad5 sad4 sad3 sad2 sad1 sad0 bit 7 bit 0 cmdr_e 0 st tig cfr mft1 mft0 mfso mffr
peb 20550 pef 20550 application hints semiconductor group 309 01.96 interrupt is generated. the search is stopped when an active mf channel has been found or when omdr:oms0 is set to 0. mffr: mffifo reset; setting this bit resets the mffifo and all operations associated with the mf handler (except for the search function) within 2 rcl periods. the mffifo is set into the state mffifo empty, write access enabled and any monitor data transfer currently in process will be aborted. mffr should be set when all data bytes have been read from the mffifo after a monitor receive operation. 1) handshake facility disabled (omdr:mfps = 0) 2) handshake facility enabled (omdr:mfps = 1) table 49 monitor/feature control channel commands transfer mode cmdr: mft, mft0 mfsar protocol selection application inactive 00 xxxxxxxx hs, no hs 1) idle state transmit 01 00 sad5 0 hs, no hs 1) iom-2, iom-1, sld transmit broadcast 01 01xxxxxx hs, no hs 1) iom-2, iom-1, sld test operation 01 10------ hs, no hs 1) iom-2, iom-1, sld transmit continuous 11 00 sad5 0 hs 2) iom-2 transmit + receive same timeslot any # of bytes 1 byte expected 2 bytes expected 8 bytes expected 16 bytes expected 10 10 10 10 10 00 sad5 0 00 sad5 0 01 sad5 0 10 sad5 0 11 sad5 0 hs 2) no hs 1) no hs 1) no hs 1) no hs 1) iom-2 iom-1 (iom-1) (iom-1) (iom-1) transmit + receive same line 1 byte expected 2 bytes expected 8 bytes expected 16 bytes expected 11 11 11 11 00 sad5 0 01 sad5 0 10 sad5 0 11 sad5 0 no hs 1) no hs 1) no hs 1) no hs 1) sld sld sld sld
peb 20550 pef 20550 application hints semiconductor group 310 01.96 status register epic ? read reset value: 00 h the status register star_e displays the current state of the mffifo and of the monitor transfer operation. it should be interrogated after an ista_e:mffi interrupt and prior to accessing the mffifo. the star_e register bits do not generate interrupts and are not modified by reading star_e. mfto: mf channel transfer in operation; an mf channel transfer is in operation (1) or not (0). mfab: mf channel transfer aborted; a logical 1 indicates that the remote receiver aborted a handshaked message transfer. mfae: mffifo access enable; the mffifo may be either read or written to (1) or it may not be accessed (0). mfrw: mffifo read/write; if mfae is set to logical 1 the mffifo may be read (1) or is ready to be written to (0). mffe: mffifo empty; the mffifo is empty (1) or not empty (1). interrupt status register epic ? read reset value: 00 h the ista register should be read after an interrupt in order to determine the interrupt source. in connection with the monitor handler two maskable (mask_e) interrupt bits are provided by the elic: mffi: mffifo interrupt; if this bit is set to 1, the last mf channel command (issued by cmdr:mft1, mft0) has been executed and the elic is ready to accept the next command. additional information can be read from star_e:mfto mffe. mffi is reset by reading ista_e. mac: monitor channel active interrupt; this bit set to 1 indicates that the elic has found an active monitor channel. a new search can be started by reissuing the cmdr:mfso command. mac is reset by reading ista_e. bit 7 bit 0 star_e mac tac pss mfto mfab mfae mfrw mffe bit 7 bit 0 ista_e tin sfi mffi mac pfi pim sin sov
peb 20550 pef 20550 application hints semiconductor group 311 01.96 5.5.3.2 description of the mf channel commands transmit command the transmit command can be used for sending mf data to a single subscriber circuit when no answer is expected. it is applicable for both handshake and non handshake protocols. the message (up to 16 bytes) can be written to the mffifo after interrogation of the star_e register. after writing of the mf channel address to mfsar the transfer can be started using the transmit command (cmdr_e = 04 h ). the contents of the mffifo will then be transmitted byte by byte to the subscriber circuit. if the handshake facility is disabled (iom-1/sld), the data is sent at a speed of one byte per frame. if the handshake facility is enabled (iom-2), each data byte must be acknowledged by the subscriber circuit before the next one is sent. the transfer speed depends therefore on the reaction time of the subscriber circuit. the elic can transmit a message at a maximum speed of one byte per two frames. in order to avoid blocking the software when a subscriber circuit fails to acknowledge a message, a software time out, which resets the monitor transfer (cmdr_e = 01 h ) should be implemented. if the remote partner aborts the reception of an arriving message i.e. if the elic detects an inactive mr bit during at least two consecutive frames, the transmit operation will be stopped, the ista_e:mffi interrupt will be generated and the star_e:mfab bit will be set to 1. the cmdr_e:mffr bit should then be set to clear the mfab bit before the next transfer. when all data bytes of the mffifo have been sent (and eventually acknowledged) the elic generates an ista_e:mffi interrupt indicating the end of the transfer. the mf handler may then be pointed to another subscriber address for another monitor transfer.
peb 20550 pef 20550 application hints semiconductor group 312 01.96 figure 105 flow diagram transmit command transmit continuous command the transmit continuous command can be used in iom-2 applications only (active handshake protocol) to send monitor messages longer than 16 bytes to a single subscriber circuit. when this command is given, the elic transmits the contents of the mffifo as with the normal transmit command but does not conclude the transfer by setting mx inactive when the mffifo is empty. instead, the m p is interrupted (ista_e:mffi) and requested to write a new block of data into the mffifo. this block may then again be transmitted using the transmit continuous command or, if it is the last block of the long message, it may be transmitted using the normal transmit command (cmdr_e:mft1, mft0 = 01). if an answer is expected from the subscriber circuit, the last block may also be terminated using the transmit + receive command (cmdr_e:mft1, mft0 = 10). each message block may be of arbitrary length (1 to 16 bytes). itd08085 r epic p w : cmdr = 01 mffr mffifo reset r : star = 05 mfae, mffe mffifo empty write access enabled 1 2 n write access enabled mffifo not empty mft1, 0 = 01 mftc1, 0 = 00 mffifo not empty access disabled transfer in operation mfto, mfrw, mffe mffifo empty transfer in operation access disabled mffi interrupt mffifo empty write access enabled transfer completed mr = 0 mr = 1 da 1 ack 1 da 2 ack 2 da n ack n w : mffifo = data w : cmdr = 04 w : mfsar = address r : star = 04 r : star = 12 r : star = 13 r : ista = 20 r : star = 05
peb 20550 pef 20550 application hints semiconductor group 313 01.96 figure 106 flow diagram transmit continuous command transmit + receive same timeslot command the transmit + receive same timeslot command can be used to send a message to a subscriber circuit, which will respond with an answer, e.g. reading back the coefficients of a sicofi device. after first transmitting the contents of the mffifo (as with the normal transmit command), the mffifo is ready to accept an incoming message which can then be read by the m p when the transfer is completed. itd08086 w : cmdr = 01 r : star = 05 mffifo reset mffifo empty write access enabled 1 2 16 mfae, mffr mffe mftc1, 0 = 00 mft1, 0 = 11 mffifo not empty write access enabled mffifo not empty access disabled transmit transfer in operation mffi interrupt mffifo empty write access enabled transfer in operation 17 18 n mffifo not empty write access enabled transfer in operation mft1, 0 = 01 transmit transfer access disabled mffifo not empty mfto, mfrw, mffe in operation mffifo empty access disabled transfer in operation mffi interrupt mffifo empty write access enabled transfer completed mr = 1 mr = 0 ack n da n ack 18 da 18 ack 17 da 17 mx = 0 mx = 0 da 1 ack 1 da 2 ack 2 da 16 ack 16 p epic r w : mffifo = data w : cmdr = 0c w : mfsar = address w : mffifo = data w : cmdr = 04 r : star = 04 r : star = 12 r : ista = 20 r : star = 15 r : star = 14 r : star = 12 r : star = 13 r : ista = 20 r : star = 05
peb 20550 pef 20550 application hints semiconductor group 314 01.96 this command can also be used to perform a receive only operation: if a message shall be received without transmission (e.g. after an active monitor channel has been found) the transmit + receive command is issued with an empty mffifo. the command is applicable for both handshake and non-handshake protocols. since the transfer operation is performed on the same timeslot, its use is intended for iom applications: C iom-2, handshake facility enabled: the contents of the mffifo is sent to the subscriber circuit subject to the iom-2 protocol i.e each byte must be acknowledged before the next one is sent. when the mffifo is empty, the elic starts to receive the incoming data bytes, each byte being autonomously acknowledged by the elic. up to 16 bytes may be stored in the mffifo. when the end of message is detected (mx bit inactive during two consecutive frames), the transfer is considered terminated and an ista_e:mffi interrupt is generated. the m p can then fetch the message from the mffifo. in order to determine the length of the arrived message, the star_e:mffe bit (mffifo empty) should be evaluated before each read access to the mffifo. after all bytes have been read, the mffifo must be reset with the cmdr_e:mffr command in order to enable new monitor transfer operations.
peb 20550 pef 20550 application hints semiconductor group 315 01.96 figure 107 flow diagram transmit + receive same timeslot command the reception of monitor messages may also (if required) be aborted at any time simply by setting the cmdr_e:mffr bit while the receive transfer is still in operation. if more than 16 bytes shall be received, the following procedure can be adopted: the first 16 data bytes received will be stored in the mffifo and acknowledged to the remote partner. the presence of a 17 th byte on the receive line will lead to an ista_e:mffi interrupt. while the transfer is still in operation (star_e = 16 h ), with the 17 th byte still left unacknowledged, the m p can read the first 16 bytes out of the mffifo. itd08087 w : cmdr = 01 r : star = 05 mffifo reset mffifo empty write access enabled 1 2 n mfae, mffr mffe mftc1, 0 = 00 mft1, 0 = 10 mffifo not empty write access enabled mffifo not empty access disabled transmit transfer in operation mffifo empty access disabled transfer in operation receive transfer access disabled mffifo not empty mfae, mfrw, mffe in operation mffifo not empty read access enabled transfer completed mffi interrupt mffifo empty read access enabled ack da ack da ack da m 2 1 m 2 1 mr = 1 1 2 n 1 2 n da ack da ack da ack mfto, mfrw,mffe mffe no transfer in operation access disabled mffifo empty mfto 1 2 m 0 = mr r epic p w : mffifo = data w : mfsar = address w : cmdr = 08 r : star = 04 r : star = 12 r : star = 13 r : star = 01 r : star = 10 r : ista = 20 r : star = 06 r : mffifo = data r : star = 07
peb 20550 pef 20550 application hints semiconductor group 316 01.96 when this is done (star_e = 17 h ), the m p issues again (with an empty mffifo) the transmit + receive command (cmdr_e = 08 h ) and the elic is again ready to receive and acknowledge further monitor bytes. C iom-1, handshake facility disabled the contents of the mffifo are sent to the subscriber circuit at a speed of 1 byte per frame. when the last byte has been transmitted, the elic stores the received monitor bytes of the next subsequent frames into the mffifo. the receive transfer is completed and an ista_e:mffi interrupt is generated after either 1, 2, 8, or 16 frames. the actual number of stored bytes can be selected with mfsar:mftc1,mftc0. transmit + receive same line command this command is similar to the transmit + receive same timeslot command i.e. it can be used to send a message to a subscriber circuit which will respond with an answer. its use is, however, intended for sld applications: cfi mode 3, 8 timeslots/frame, handshake facility disabled. the transmit operation is performed in the downstream timeslot specified in mfsar while the receive operation is performed on the same sip line, but four timeslots later in the upstream timeslot. transmit broadcast command the transmit broadcast command can be used for sending a monitor/feature control message to all subscriber circuits simultaneously. it is applicable for both handshake and non handshake protocols. the procedure is similar to the normal transmit command with the exception that the contents of the mffifo is transmitted on all downstream mf timeslots (defined by the cm code field). if the handshake protocols is active (iom-2) the data bytes are transmitted at a speed of one byte per three frames and the arriving acknowledgments are ignored. test operation command when executing the test operation command, a message written to the mffifo will not be transmitted to the subscriber circuit but may instantaneously be read back. all interrupts (ista_e) and status (star_e) bits will be generated in the same manner as for a normal transmit + receive transfers. it is applicable for both handshake and non- handshake protocols.
peb 20550 pef 20550 application hints semiconductor group 317 01.96 search for active monitor channels command in iom-2 applications the monitor channel is sometimes used for low speed data transfers over the s and q channels of an s interface or over the eoc channel of a u (2b1q) interface. the layer-1 transceivers (sbcx peb 2081, iec-q peb 2091) may then, upon reception of a new message, start a monitor channel communication with the elic. for those applications where a slave device initiates an mf channel transfer, the elic has implemented the search for active monitor channels command. the active handshake protocol (omdr:mfps = 1) must be selected for this function. when the mf search on command (cmdr:mfso = 1) is executed, the elic searches for active handshake bits (mx) on all upstream monitor channels. as soon as an active channel is found, an ista_e:mac interrupt is generated, the search is stopped, and the address of this channel is stored in mfair. the m p can then copy the value of mfair to mfsar in order to point the mf handler to that particular channel. with an empty mffifo the transmit + receive same timeslot command can be executed to initiate the reception of the monitor message. the elic will then autonomously acknowledge each received byte and report the end of the transfer by an ista_e:mffi interrupt. the m p can read the message from the mffifo and, if required, execute a new mf search command. note: the search should only be started when no receive transfer is in operation, otherwise each received byte will lead to the ista_e:mac interrupt. once started, the search for active monitor channels can only be stopped when such a channel has been found or when the control memory is reset or initialized (omdr:oms0 = 0).
peb 20550 pef 20550 application hints semiconductor group 318 01.96 figure 108 flow diagram search for active monitor channels command itd08088 w : cmdr = 02 mfso search for active r : mfair = 01xxxxxx write access enabled mffifo empty mft1, 0 = 10 mffifo empty access disabled receive transfer mffifo not empty transfer completed read access enabled mffi interrupt ack 1 da 2 ack 2 da m ack m monitor channels is on mac interrupt channel found search is off in operation 1 2 m mfae, mfrw, mffe mffifo empty read access enabled da 1 r epic p w : mfsar = mfair w : cmdr = 08 w : mffifo = data r : ista = 10 r : mfair = 00 sad5...0 r : star = 05 r : star = 10 r : ista = 20 r : star = 06 r : star = 07
peb 20550 pef 20550 application hints semiconductor group 319 01.96 5.6 m p channels if a cfi timeslot shall be accessed by the m p instead of being switched to the pcm interface, this channel can be configured as a m p channel. this is achieved by writing the code 1001 to the cm code field. in this case the content of the corresponding cfi timeslot is directly exchanged with the cm data field. figure 109 and figure 110 illustrate the use of the control memory (cm) data and code fields for such applications. if a cfi timeslot is initialized as m p channel, the function taken on by the cm data field can be compared to the function taken on by the data memory (dm) data field at the pcm interface, i.e. it buffers the pcm data received or to be transmitted at the serial interface. in contrast to the pcm interface, where pcm idle channels can be programmed on a 2 bit sub-timeslot basis, the cfi only allows m p access for full 8 bit timeslots. figure 109 m p access to the downstream cfi frame itd08089 . . ma6 0 macr: data field control memory madr: maar: code field stream down- 127 0 cfi frame .. . ma0 0 1001000 1 0 0 1
peb 20550 pef 20550 application hints semiconductor group 320 01.96 figure 110 m p access to the upstream cfi frame the value written to the downstream cm data field location is transmitted repeatedly in every frame (cfi idle value) during the corresponding downstream cfi timeslot until a new value is loaded or the m p channel function is disabled. there are no interrupts generated. the upstream cm data field can be read at any time. the cm data field is updated in every frame. the last value read represents the value received. there are no interrupts generated. for frame-synchronous exchange of data between the m p and the cfi, the synchronous transfer utility must be used (refer to chapter 5.7 ). since this utility realizes the data itd08090 . . ma6 1 macr: data field control memory madr: maar: code field 127 0 cfi frame .. . ma0 1 1001000 1 0 0 1 stream up-
peb 20550 pef 20550 application hints semiconductor group 321 01.96 exchange between the stda (stdb) register and the cm data field, it is also necessary to initialize the corresponding cfi timeslots as m p channels. the following sequences can be used to program, verify, and cancel a cfi m p channel: writing a downstream cfi idle value C in case the cm code field has not yet been initialized with the m p channel code: w:madr = cfi idle value to be transmitted w:maar = downstream cfi port and timeslot encoded according to figure 84 w:macr = 0111 1001 b = 79 h ; cm code 1001 ( m p transfer) C in case the cm code field has already been initialized with the m p channel code: w:madr = cfi idle value to be transmitted w:maar = downstream cfi port and timeslot encoded according to figure 84 w:macr = 0100 1000 b = 48 h ; moc code 1001 (cm data field access) reading an upstream cfi idle value C initializing an upstream cfi timeslot as a m p channel: w:madr = dont care w:maar = upstream cfi port and timeslot encoded according to figure 84 w:macr = 0111 1001 b = 79 h ; cm code 1001 ( m p transfer) C reading the upstream cfi idle value: w:maar = upstream cfi port and timeslot encoded according to figure 84 w:macr = 1100 1000 b = c8 h ; moc code 1001 (cm data field access) wait for star:mac = 0 r:madr = received cfi idle value reading back the idle value transmitted at a downstream cfi m p channel: w:maar = downstream cfi port and timeslot encoded according to figure 84 w:macr = 1100 1000 b = c8 h ; moc code 1001 (cm data field access) wait for star:mac = 0 r:madr = transmitted cfi idle value reading back the cfi functionality of a given cfi timeslot: w:maar = cfi port and timeslot encoded according to figure 84 w:macr = 1111 0000 b = f0 h ; moc code 111x (cm code field access) wait for star:mac = 0 r:madr = xxxx code b ; if code = 1001, the cfi timeslot is a m p channel
peb 20550 pef 20550 application hints semiconductor group 322 01.96 cancelling of a programmed cfi m p channel: w:madr = dont care w:maar = cfi port and timeslot encoded according to figure 84 w:macr = 0111 0000 b = 70 h ; code 0000 (unassigned channel) examples in cfi mode 1 the following m p channels shall be realized: upstream: cfi port 1, timeslot 7: w:madr = 1111 1111 b ; dont care w:maar = 1000 1111 b ; cfi timeslot encoding according to figure 84 w:macr = 0111 1001 b ; cm code for a m p channel (code 1001) downstream: cfi port 0, timeslot 2, the value 0000 0111 shall be transmitted: w:madr = 0000 0111 b ; cfi idle value 0000 0111 w:maar = 0000 0100 b ; cfi timeslot encoding according to figure 84 w:macr = 0111 1001 b ; cm code for a m p channel (code 1001) the next sequence will read the currently received value at du1, ts7: w:maar = 1000 1111 b ; upstream cfi port and timeslot w:macr = 1100 1000 b = c8 h ; read back command wait for star:mac = 0 r:madr = value ; received cfi idle value
peb 20550 pef 20550 application hints semiconductor group 323 01.96 5.7 synchronous transfer utility the synchronous transfer utility allows the synchronous exchange of information between the pcm interface, the configurable interface, and the m p interface for two independent channels (a and b). the m p can thus monitor, insert, or manipulate the data synchronously to the frame repetition rate. the synchronous transfer is controlled by the synchronous transfer registers. the information is buffered in the synchronous transfer data register stda (stdb). it is copied to stda (stdb) from a data or control memory location pointed to by the content of the synchronous receive register sara (sarb) and copied from the stda (stdb) to a data or control memory location pointed to by the content of the synchronous transfer transmit register saxa (saxb). the saxa (saxb) and sara (sarb) registers identify the interface (pcm or cfi) as well as the timeslot and port numbers of the involved channels according to figure 84 . control bits in the synchronous transfer control register stcr allow restricting the synchronous transfer to one of the possible sub-timeslots and enables or disables the synchronous transfer utility. for example, it is possible to read information via the downstream data memory from the pcm interface input to the stda (stdb) register and to transmit it from this register back via the upstream data memory to the pcm interface output, thus establishing a pcm - pcm loop. similarly the synchronous transfer facility may be used to loop back configurable interface channels or to establish connections between the cfi and pcm interfaces. while the information is stored in the data register stda (stdb), it may be read and or modified by the m p.
peb 20550 pef 20550 application hints semiconductor group 324 01.96 figure 111 access to pcm and cfi data using the synchronous transfer utility in upstream transmit direction (pcm interface output), it is necessary to assure that no other data memory access writes to the same location in the upstream dm block. hence an upstream connection involving the same pcm port and timeslot as the synchronous transfer may not be programmed. an idle code previously written to the data or control memory for the upstream or downstream directions is overwritten. at the pcm interface it is possible to restrict the synchronous exchange with the data registers stda (stdb) to a 2 or 4 bit sub-timeslot position. the working principle is similar to the subchannel switching described in chapter 5.4.2 . itd08091 code field data field control memory cfi frame 0 127 up- stream stream down- 127 0 data field 127 0 frame pcm up- stream 0 127 down- stream data memory 0 11 0 0 10 1 stda/stdb: saxa/saxb: 1 1 sara/sarb: sara/sarb: 0 0 saxa/saxb: 1 24 3 2 1 3 4 cfi port + time - slot pcm port + time - slot cfi port + time - slot pcm port + time - slot
peb 20550 pef 20550 application hints semiconductor group 325 01.96 if the cfi is selected as source/destination of the synchronous transfer, the contents of the data register stda (stdb) are exchanged with the control memory data field. it is therefore necessary to initialize the corresponding control memory code field as m p channel (code 1001). also refer to chapter 5.6 . since the m p channel set-up at the cfi only allows a channel bandwidth of 64 kbit/s, the synchronous transfer utility also allows only 64 kbit/s channels at the cfi. the elic generates interrupts guiding through the synchronous transfer. upon the ista_e:sin interrupt the data registers stda (stdb) may be accessed for some time. if the data register of an active channel has not been accessed at the end of this time interval the ista:sov interrupt is generated, before the elic performs the transfer to the selected memory locations. if the m p fails to overwrite the data register with a new value, the value previously received from the timeslot pointed to by sara (sarb) will be transmitted. the ista_e:sin and sov interrupts are generated periodically at fixed time points within the frame regardless of the actual positions of the involved timeslots. the repetition cycle of the synchronous transfer is identical to a frame length (125 m s). the access window is closed for at most, 16 rcl periods per active channel + 1 rcl period, leaving a very long access time. this behavior is also shown in figure 112 : figure 112 synchronous transfer flow diagram example in a typical iom-2 application, the rcl frequency is 4096 khz, i.e. an rcl period lasts 244 ns. the iom-2 frame duration is 125 m s. if one synchronous channel is enabled, the access window is open for 121 m s and closed for 4 m s. if both synchronous channels are enabled, the access window is open for 117 m s and closed for 8 m s. itd08092 125 s max. 17 (33) rcl periods frame n frame n + 1 stcr : tae(tbe) = 1 sin (sov) sin sin (sov) p access window open access window open p
peb 20550 pef 20550 application hints semiconductor group 326 01.96 5.7.1 registers used in conjunction with the synchronous transfer utility synchronous transfer data register a read/write reset value: undefined the stda register buffers the data transferred over the synchronous transfer channel a. mtda7 to mtda0 hold the bits 7 to 0 of the respective timeslot. mtda7 (msb) is the bit transmitted/received first, and mtda0 (lsb) the bit transmitted/received last over the serial interface. synchronous transfer receive address register b read/write reset value: undefined the stdb register buffers the data transferred over the synchronous transfer channel b. mtdb7 to mtdb0 hold the bits 7 to 0 of the respective timeslot. mtdb7 (msb) is the bit transmitted/received first, mtdb0 (lsb) the bit transmitted/received last over the serial interface. synchronous transfer receive address register a read/write reset value: undefined the sara register specifies for synchronous transfer channel a from which input interface, port, and timeslot the serial data is extracted. this data can then be read from the stda register. isra: interface select receive for channel a; selects the pcm interface (isra = 0) or the cfi (isra = 1) as the input interface for synchronous channel a. mtra6 0: m p transfer receive address for channel a; selects the port and timeslot number at the interface selected by isra according to figure 84 : mtra60 = ma60. bit 7 bit 0 stda: mtda7 mtda6 mtda4 mtda3 mtda2 mtda1 mtda0 bit 7 bit 0 stdb: mtdb7 mtdb6 mtdb5 mtdb4 mtdb3 mtdb2 mtdb1 mtdb0 bit 7 bit 0 sara: isra mtra6 mtra5 mtra4 mtra3 mtra2 mtra1 mtra0
peb 20550 pef 20550 application hints semiconductor group 327 01.96 synchronous transfer receive address register b read/write reset value: undefined the sarb register specifies for synchronous transfer channel b from which input interface, port, and timeslot the serial data is extracted. this data can then be read from the stdb register. isrb: interface select receive for channel b; selects the pcm interface (isrb = 0) or the cfi (isrb = 1) as the input interface for synchronous channel b. mtrb6 0: m p transfer receive address for channel b; selects the port and timeslot number at the interface selected by isrb according to figure 84 : mtrb60 = ma60. synchronous transfer receive address register a read/write reset value: undefined the saxa register specifies for synchronous transfer channel a to which output interface, port, and timeslot the serial data contained in the stda register is sent. isxa: interface select transmit for channel a; selects the pcm interface (isxa = 0) or the cfi (isxa = 1) as the output interface for synchronous channel a. mtxa6 0: m p transfer transmit address for channel a; selects the port and timeslot number at the interface selected by isxa according to figure 84 : mtxa6 0 = ma6 0. synchronous transfer transmit address register b read/write reset value: undefined bit 7 bit 0 sarb: isrb mtrb6 mtrb5 mtrb4 mtrb3 mtrb2 mtrb1 mtrb0 bit 7 bit 0 saxa: isxa mtxa6 mtxa5 mtxa4 mtxa3 mtxa2 mtxa1 mtxa0 bit 7 bit 0 saxb: isxb mtxb6 mtxb5 mtxb4 mtxb3 mtxb2 mtxb1 mtxb0
peb 20550 pef 20550 application hints semiconductor group 328 01.96 the saxb register specifies for synchronous transfer channel b to which output interface, port, and timeslot the serial data contained in the stdb register is sent. isxb: interface select transmit for channel b; selects the pcm interface (isxb = 0) or the cfi (isxb = 1) as the output interface for synchronous channel b. mtxb6 0: m p transfer transmit address for channel b; selects the port and timeslot number at the interface selected by isxb according to figure 84 : mtxb6 0 = ma6 0. synchronous transfer control register stcr read/write reset value: undefined the stcr register bits are used to enable or disable the synchronous transfer utility and to determine the sub-timeslot bandwidth and position if a pcm interface timeslot is involved. tae, tbe: transfer channel a (b) enable; a logical 1 enables the m p transfer, a logical 0 disables the transfer of the corresponding channel. cta2 0: channel type a (b); these bits determine the bandwidth of the channel and the position of the relevant bits in the timeslot according ctb2 0: to tabel 50 . note that if a cfi timeslot is selected as receive or transmit timeslot of the synchronous transfer, the 64 kbit/s bandwidth must be selected (ct#2 ct#0 = 001). bit 7 bit 0 stcr: tbe tae ctb2 ctb1 ctb0 cta2 cta1 cta0
peb 20550 pef 20550 application hints semiconductor group 329 01.96 interrupt status register epic ? read/write reset value: 00 h the ista register should be read after an interrupt in order to determine the interrupt source. two maskable (mask_e) interrupts are provided in connection with the synchronous transfer utility: sin: synchronous transfer interrupt; the sin interrupt is enabled if at least one synchronous transfer channel (a and/or b) is enabled via the stcr:tae, tbe bits. the sin interrupt is generated when the access window for the m p opens. after the occurrence of the sin interrupt (logical 1) the m p can read and/or write the synchronous transfer data registers (stda, stdb). the window where the m p can access the data registers is open for the duration of one frame (125 m s) minus 17 rcl cycles if only one synchronous channel is enabled and it is open for one frame minus 33 rcl cycles if both a and b channels are enabled. the sin bit is reset by reading ista_e. sov: synchronous transfer overflow; the sov interrupt is generated (logical 1) if the m p fails to access the data registers (stda, stdb) within the access window. the sov bit is reset by reading ista_e. table 50 synchronous transfer channel type ct#2 ct#1 ct#0 bandwidth transferred bits 0 0 0 0 1 1 1 1 0 0 1 1 0 0 1 1 0 1 0 1 0 1 0 1 not allowed 64 kbit/s 32 kbit/s 32 kbit/s 16 kbit/s 16 kbit/s 16 kbit/s 16 kbit/s C bits 7 0 bits 3 0 bits 7 4 bits 1 0 bits 3 2 bits 5 4 bits 7 6 bit 7 bit 0 ista_e: tin sfi mffi mac pfi pim sin sov
peb 20550 pef 20550 application hints semiconductor group 330 01.96 examples 1) in pcm mode 0, the synchronous transfer utility (channel a) shall be used to loop bits 7 6 of downstream pcm port 1, timeslot 5 back to bits 7 6 of upstream pcm port 2, timeslot 9. since no m p access to the data is required the ista_e:sin and sov bits are both masked: w:mask = 03 h ; sin = sov = 1 w:sara = 13 h ; isra = 0, port 1, ts5 w:saxa = 25 h ; isxa = 0, port 2, ts9 w:stcr = 47 h ; tae = 1, cta2 0 = 111 (bits 7 6) 2) in pcm mode 0 and cfi mode 0, the m p shall have access to both the downstream and upstream cfi port 0, timeslot 1 via the synchronous transfer channel b: w:sarb = 81 h ; isrb = 1, port 0, ts1 w:saxb = 81 h ; isxb = 1, port 0, ts1 w:stcr = 88 h ; tbe = 1, cta2 0 = 001 (bits 7 0) wait for interrupt: r:ista = 02 h ; sin = 1 r:sadb = upstream cfi data w:sadb = downstream cfi data wait for next sin interrupt and transfer further data bytes .
peb 20550 pef 20550 application hints semiconductor group 331 01.96 5.8 supervision functions 5.8.1 hardware timer hardware timer the elic provides a programmable hardware timer which can be used for three purposes: C general purpose timer for continuously interrupting the m p at programmable time intervals. C timer to define the last look period for signaling channels at the cfi (see chapter 5.5.1 ). C timer to define the fsc multiframe generation at the cfi (cmd2:fc2 0 = 111, see chapter 5.2.2.3 ). normally in a system only one of these functions is required and therefore active at a time. however, it is also possible to have any combination of these functions active, if it is acceptable that all three applications use the same timer value. the timer period can be selected from 250 m s up to 32 ms in increments of 250 m s. figure 113 timer applications itd08093 t cmdr : st = 1 timer start (cmdr : tig = 1) (ista : tin) ll sampling multifr. sync. multifr. sync. timer stop timr = xx t t = (tval6...0 + 1) x 250 s ll : last look ll sampling (ista : tin)
peb 20550 pef 20550 application hints semiconductor group 332 01.96 the following register bits are used in conjunction with the hardware timer: timer register write reset value: 00 h writing to the timr register stops the timer operation! ssr: signaling channel sample rate; this bit actually does not affect the timer operation. it is used to select between a fixed last look period for signaling channels of 125 m s (ssr = 1), which is independent of the timer operation and a signaling sample rate that is defined by the timer period (ssr = 0). tval6 0: timer value; the timer period is programmed here in increments of 250 m s: timer period = (tval6 0 + 1) 250 m s command register epic ? write reset value: 00 h st: start timer; setting this bit to logical 1 starts the timer to run cyclically from 0 to the value programmed in timr:tval6 0. setting this bit to logical 0 does not affect the timer operation. if the timer shall be stopped, the timr register must simply be written with a random value. tig: timer interrupt generation; setting this bit together with cmdr_e:st to logical 1 causes the elic to generate a periodic interrupt (ista_e:tin) each time the timer expires. setting the tig bit to logical 0 together with the cmdr:st bit set to logical 1 disables the interrupt generation. it should be noted that this bit only controls the ista_e:tin interrupt generation and need not be set for the ista_e:sfi interrupt generation. bit 7 bit 0 timr: ssr tval6 tval5 tval4 tval3 tval2 tval1 tval0 bit 7 bit 0 cmdr_e 0 st tig cfr mft1 mft0 mfso mfr
peb 20550 pef 20550 application hints semiconductor group 333 01.96 interrupt status register epic ? read/write reset value: 00 h the ista register should be read after an interrupt in order to determine the interrupt source. in connection with the hardware timer one maskable (mask_e) interrupt bit is provided by the elic: tin: timer interrupt; if this bit is set to logical 1, a timer interrupt previously requested with cmdr_e:st,tig = 1 has occurred. the tin bit is reset by reading ista_e. it should be noted that the interrupt generation is periodic, i.e. unless stopped by writing to timr, the ista_e:tin will be generated each time the timer expires. status register epic ? read reset value: 05 h the star_e register bits do not generate interrupts and are not modified by reading star_e. tac: timer active; while the timer is running (cmdr:st=1) the tac bit is set to logical 1. the tac bit is reset to logical 0 after the timer has been stopped (w:timr = xx). 5.8.2 pcm input comparison to simplify the realization of redundant pcm transmission lines, the elic can be programmed to compare the contents of certain pairs of its pcm input lines. if a pair of lines carry the same information (normal case), nothing happens. if however the two lines differ in at least one bit (error case), the elic generates an ista_e:pim interrupt and indicates in the picm register the pair of input lines and the timeslot number that caused that mismatch. the comparison function is carried out between the pairs of physical pcm input lines rxd0/rxd1 and rxd2/rxd3. it can be activated in all pcm modes, including pcm mode 0. however, a redundant pcm input line that can be switched over to by means of the pmod:ais1 0 bits is of course only available in pcm modes 1 and 2. bit 7 bit 0 ista_e: tin sfi mffi mac pfi pim sin sov bit 7 bit 0 star_e: mac tac pss mfto mfab mfae mfrw mffe
peb 20550 pef 20550 application hints semiconductor group 334 01.96 the following register bits are used in conjunction with the pcm input comparison function: pcm mode register read/write reset value: 00 h aic1 0: alternative input comparison 1 and 0. aic0 set to logical 1 enables the comparison function between rxd0 and rxd1. aic1 set to logical 1 enables the comparison function between rxd2 and rxd3. aic1, aic0 set to logical 0 disables the respective comparison function. in pcm mode 2, aic0 must be set to logical 0. interrupt status register epic ? read reset value: 00 h the ista_e register should be read after an interrupt in order to determine the interrupt source. in connection with the pcm comparison function one maskable (mask_e) interrupt bit is provided by the elic: pim: pcm input mismatch; this bit is set to logical 1 immediately after the comparison logic has detected a mismatch between a pair of pcm input lines. the exact reason for the interrupt can be determined by reading the picm register. reading ista_e clears the pim bit. a new pim interrupt can only be generated after the picm register has been read. pcm input comparison mismatch read reset value: undefined the contents of the picm register is only valid after an ista_e:pim interrupt! bit 7 bit 0 pmod: pmd1 pmd0 pcr psm ais1 ais0 aic1 aic0 bit 7 bit 0 ista_e: tin sfi mffi mac pfi pim sin sov bit 7 bit 0 picm: ipn tsn6 tsn5 tsn4 tsn3 tsn2 tsn1 tsn0
peb 20550 pef 20550 application hints semiconductor group 335 01.96 the picm register must be read after an ista_e:pim interrupt in order to enable a new pim interrupt generation. ipn: input pair number; this bit indicates the pair of input lines where a mismatch occurred. a logical 0 indicates a mismatch between lines rxd0 and rxd1, a logical 1 between lines rxd2 and rxd3. tsn6 0: timeslot number 6 0; these bits specify the timeslot number and the bit positions that generated the ista_e:pim interrupt according to the table below. tpf denotes the number of timeslots per pcm frame example in pcm mode 1, the logical pcm port 0 is connected to two physical pcm transmission links. the comparison function for rxd0/rxd1 is enabled via pmod:aic0 = 1. suddenly a bit error occurs at one of the receive lines in timeslot 13, bit 2. the m p would then get the following information from the elic: interrupt! r: ista = 04 h ; pim interrupt r: picm = 13 h ; ipn = 0, tsn6 1 = 9, tsn0 = 1 in order to determine the line actually at fault (rxd0 or rxd1) the system must send a known pattern in one of the timeslots and compare the actually received value with that known pattern. table 51 identification of the timeslot and bit number in case of a mismatch pcm mode timeslot identification bit identification 2[tsn60 + 8] mod tpf 1, 3 [tsn6 1 + 4] mod tpf tsn0 = 1 : bits 3 0 tsn0 = 0 : bits 7 4 0[tsn62 + 2] mod tpf tsn10=11:bits 10 tsn10=10:bits 32 tsn10=01:bits 54 tsn10=00:bits 76
peb 20550 pef 20550 application hints semiconductor group 336 01.96 figure 114 connection of redundant pcm transmission lines to the elic ? 5.8.3 pcm framing supervision usually the repetition rate of the applied framing pulse pfs is identical to the frame period (125 m s). if this is the case, the loss of synchronism indication function can be used to supervise the clock and framing signals for missing or additional clock cycles. the elic internally checks the pfs period against the duration expected from the programmed clock rate. the clock rate corresponds to the frequency applied to the pdc pin. the number of clock cycles received within one pfs period is compared with the values programmed to pbnr (number of bits per frame) and pmod:pcr (single/double clock rate operation). if for example single clock rate operation with 24 timeslots per frame is programmed, the elic expects 192 clock cycles within one pfs period. the synchronous state is reached after the elic has detected two consecutive correct frames. the synchronous state is lost if one erroneous frame is found. the itd08094 out0 tsc0 in0 txd0 tsc0 rxd0 rxd1 line drivers & receivers =1 tsc1 pmod ais0 ista pim logical ports epic physical pins: pcm transmission line #1 pcm transmission line #2 1 0 : : r
peb 20550 pef 20550 application hints semiconductor group 337 01.96 synchronization status (gained or lost) can be read from the star_e register (pss bit) and each status change generates an interrupt (ista_e:pfi). it should be noted that the framing supervision function is optional, i.e. it is also allowed to apply a pfs signal having a period of several frame periods e.g. 4 khz, 2 khz, . the star_e:pss bit will then be at logical 0 all the time, which does however not affect the proper operation of the elic. the following register bits are used in conjunction with the pcm framing supervision: interrupt status register epic ? read/write reset value: 00 h the ista_e register should be read after an interrupt in order to determine the interrupt source. in connection with the pcm framing control one maskable (mask_e) interrupt bit is provided by the elic: pfi: pcm framing interrupt; if this bit is set to logical 1, the star_e:pss bit has changed its polarity. to determine whether the pcm interface is synchronized or not, star_e must be read. the pfi bit is reset by reading ista_e. status register epic ? read reset value: 05 h the star_e register bits do not generate interrupts and are not modified by reading star_e. however, each change of the pss bit (0 ? 1 and 1 ? 0) causes an ista_e:pfi interrupt. pss: pcm synchronization status; while the pcm interface is synchronized, the pss bit is set to logical 1. the pss bit is reset to logical 0 if there is a mismatch between the pbnr value and the applied clock and framing signals (pdc/pfs) or if omdr:oms0 = 0. bit 7 bit 0 ista_e: tin sfi mffi mac pfi pim sin sov bit 7 bit 0 star_e: mac tac pss mfto mfab mfae mfrw mffe
peb 20550 pef 20550 application hints semiconductor group 338 01.96 5.8.4 power and clock supply supervision/chip version power and clock supply supervision the + 5 v power supply line ( v dd ) and the reference clock (rcl) are continuously checked by the elic for spikes that may disturb the proper operation of the elic. if such an inappropriate clocking or power failure occurs, data in the internal memories may be lost, and a reinitialization of the elic is necessary. an initialization request status bit (vnsr:ir) can be interrogated periodically by the m p to determine the current status of the device. in normal chip operation, the ir bit should never be set, not even after power on or when the clock signals are switched on and off. the ir bit will only be set if spikes ( < 10 ns) are detected on the clock and power lines which may affect the data transfer on the elic internal buses.
peb 20550 pef 20550 application hints semiconductor group 339 01.96 5.9 applications 5.9.1 analog iom ? -2 line card with sicofi ? -4 as codec/filter device the line card consists of an elic (peb 20550) device which handles the monitor and the signaling channels of up to 16 sicofi-4 (peb 2465) devices. since each sicofi-4 supports four analog lines, up to 64 analog subscriber lines (t/r lines) can be accommodated. figure 115 shows the interconnection of the elic, and the sicofi-4 devices via the iom-2 interface: figure 115 analog line card with sicofi ? -4 devices using the iom ? -2 interface a typical timing example for the connection of the line card to a 2048 kbit/s pcm backplane is shown in figure 116 . it should be noted that the pcm interface must be clocked with a 4096 khz clock even if the pcm interface operates at only 2048 kbit/s. this is to obtain a dcl output frequency of 4096 khz, which is required for the iom-2 timing. its08095 elic r dcl fsc dd0 du0 dd1 du1 2 du 2 dd du3 dd3 pfs pdc rxd0 txd0 txd1 rxd1 txd2 rxd2 txd3 rxd3 sacco a sacco b p dcl fsc in out d d lines d d out in fsc dcl sicofi -4 analog analog lines quadruple codec filter 1k w w k 1 +5 v +5 v 4096 khz 8 khz 2048 kbit/s pcm backplane 4 x iom -2 ports r quadruple codec filter up to 4 devices per iom -2 port r 8 khz 4096 khz 2048 kbit/s or 4096 kbit/s signaling highway backplane r r sicofi -4 2048 kbit/s
peb 20550 pef 20550 application hints semiconductor group 340 01.96 figure 116 typical iom ? -2 line card timing based on these pcm and cfi timing requirements, the following elic initialization values for the pcm and cfi registers are recommended: elic ? pmod = 0010 0000 b =20 h pcm mode 0, double rate clock, pfs evaluated with falling clock edge, pcm comparison disabled pbnr = 1111 1111 b =ff h 256 bits (32 ts) per pcm frame pofd = 1111 0000 b =f0 h pfs marks downstream pcm ts0, bit 7 pofu = 0001 1000 b =18 h pfs marks upstream pcm ts0, bit 7 pcsr = 0000 0001 b =01 h pcm data received with falling, transmitted with rising clock edge cmd1 = 0010 0000 b =20 h pdc/pfs clock source, pfs evaluated with falling clock edge, prescaler = 1, cfi mode 0 cmd2 = 1101 0000 b =d0 h fc mode 6, double rate clock, cfi data transmitted with rising, received with falling clock edge cbnr = 1111 1111 b =ff h 256 bits (32 ts) per cfi frame itt08096 ts31, bit 0 bit 7 ts0, pfs pdc txd# rxd# fsc dcl ... ... du# dd# ts0, bit 6 ts0, bit 5 ts0, bit 4 bit 0 ts31, bit 4 ts0, bit 5 ts0, bit 6 ts0, ts0, bit 7 bit 4 ts0, bit 5 ts0, bit 6 ts0, ts0, bit 7 bit 0 ts31, bit 7 ts0, ts0, bit 6 ts0, bit 5 ts0, bit 4 ts31, bit 0
peb 20550 pef 20550 application hints semiconductor group 341 01.96 ctar = 0000 0010 b =02 h pfs marks downstream cfi ts0 cbsr = 0010 0000 b =20 h pfs marks downstream cfi bit 7, upstream bits not shifted cscr = 0000 0000 b =00 h 64, 32, 16 kbit/s channels located on cfi ts bits 70, 74, 76 each sicofi-4 device must be assigned to its individual iom-2 channels by pin- strapping. the sicofi-4 coefficients (filter characteristics, gain, ) as well as other operation parameters, are programmed via the elic over the iom-2 monitor channel. example initializing 4 consecutive cfi timeslots as an analog iom-2 channel. timeslots 0, 1, 2, and 3 of cfi port 2 shall represent the iom channel 0 of port 2. timeslots 4, 5, 6, and 7 of cfi port 2 shall represent the iom channel 1 of port 2. this requires the sicofi-4 to be pin-strapped to that slot by connecting pin tss0 and pin tss1 to 0 v. timeslots 4 and 5 represent the two b channels that may for example be switched to the pcm interface. timeslots 6 and 7 represent the monitor and signaling (sig) channels and must be initialized in the elic control memory (cm): w: madr = ff h ; 6 bit signaling value to be transmitted in timeslot 7 w:maar = 1c h ; cfi address of downstream iom port 2, timeslot 6 w: macr = 7a h ; writing cm with code 1010 w: madr = ff h ; value dont care, e.g. ff w: maar = 1d h ; cfi address of downstream iom port 2, timeslot 7 w: macr = 7b h ; writing cm with code 1011 w: madr = ff h ; 6 bit signaling value expected upon initialization in timeslot 7 w: maar = 9c h ; cfi address of upstream iom port 2, timeslot 6 w: macr = 7a h ; writing cm with code 1010 w: madr = ff h ; 6 bit signaling value expected upon initialization in timeslot 7 w: maar = 9d h ; cfi address of upstream iom port 2, timeslot 7 w: macr = 7a h ; writing cm with code 1010 the above steps have to be repeated for all timeslots that shall be handled by the monitor or signaling handler of the elic (i.e. ts2 and ts3, ts10 and ts11, ts14 and ts15).
peb 20550 pef 20550 application hints semiconductor group 342 01.96 example for programming the codec corresponding to ts6 of the sicofi-4: w: omdr = ee h ; activation of elic with active handshake protocol w: mfsar = 0e h ; monitor address for port 2, timeslot 6 w: cmdr = 01 h ; mffifo reset r: star = 25 h ; mffifo write access enabled w: mffifo = 81 h ; sicofi-4 monitor address w: mffifo = 14 h (94 h ) ; sicofi-4 channel a (b) data w: mffifo = 00 h ; sicofi-4 data w: mffifo = 00 h ; sicofi-4 data w: mffifo = 00 h ; sicofi-4 data w: mffifo = 00 h ; sicofi-4 data w: cmdr = 00 h ; transmit command wait for interrupt! r: ista = 20 h ; mffi interrupt r: star = 25 h ; transfer completed, mffifo write access enabled reading back data from sicofi-4: w: mfsar = 0e h ; monitor address for port 2, timeslot 6 w: cmdr = 01 h ; mffifo reset r: star = 25 h ; mffifo write access enabled w: mffifo = 81 h ; sicofi-4 monitor address w: mffifo = 65 h (e5 h ) ; sicofi-4 channel a (b) data, read back request w: cmdr = 08 h ; transmit and receive command wait for interrupt! r: ista = 20 h ; mffi interrupt r: star = 26 h ; transfer completed, mffifo not empty, read access enabled r: mffifo = 81 h ; sicofi-4 monitor address r: mffifo = 00 h ; sicofi-4 data r: mffifo = 00 h ; sicofi-4 data r: mffifo = 00 h ; sicofi-4 data r: mffifo = 00 h ; sicofi-4 data r: star = 27 h ; transfer completed, mffifo empty, read access enabled
peb 20550 pef 20550 application hints semiconductor group 343 01.96 5.9.2 iom ? -2 trunk line applications trunk lines connect the pbx to the central office (co) network. figure 117 gives an overview of the different access possibilities to the central office. one possibility is to use analog a/b lines. this is the most uncomplicated way since no clock recovery from the co is required, i.e. the pbx operates with a free running crystal oscillator. the t/r access to the co can easily be realized with one or several sicofi - 2 or sicofi-4 codec/filter devices, which allow the connection of two or four analog lines per chip. if an access to the isdn world is desired, two options are possible: for small pbxs, with only few external lines, one or several basic rate isdn (bri) connections are best suited. each bri connection provides a capacity of two b channels of 64 kbit/s and one d channel of 16 kbit/s. the bri connection is usually performed via the t interface to the network terminator 1 (nt1). the t interface is physically identical to the s interface, all siemens s 0 interface devices (quat-s, sbcx, isac-s, sbc) can be used for that purpose. a pbx can also be connected directly via the u k - interface to the co. in this case an iec-q device (2b1q encoding) or an iec-t (4b3t encoding) can be used as layer-1 device. figure 117 overview of trunk line applications its08097 sicofi -2 r r sicofi -4 sbcx quat-s iecq elic r hdlc idec r iom -2 r p falc54 backplane pcm/signaling pcm pbx trunk line card central office t/r t/r nt1 t nt1 analog line analog line basic rate isdn basic rate isdn u primary rate (cept, t1) k k u u k2 g2 u s 2m
peb 20550 pef 20550 application hints semiconductor group 344 01.96 for large pbxs, with many external lines, one or several primary rate isdn (pri) connections are more advantageous. if the european cept standard is used, each pri connection provides 30 b channels of 64 kbit/s each and one d channel of 64 kbit/s. the falc54 can be used to implement the primary rate s 2m interface according to the cept (2048 kbit/s) or the t1 (1544 kbit/s) standards. for both standards a common backplane data rate of 2048 or 4096 kbit/s can be selected to simplify the connection to the pbx internal pcm highway, which usually consists of 32 or 64 timeslots. digital trunk lines require a clock recovery from the received data stream such that the pbx clock system is locked up with the co clock system. the examples given in the following chapters show how to deal with these points. 5.9.2.1 pbx with multiple isdn trunk lines in a trunk unit special attention must be given to the clock synchronization. the pbx clock generator must deliver a stable free running clock as long as no external calls are active. when an external call is established, the co must be taken as reference to synchronize the local pbx clock system. the siemens s 0 -layer-1 transceivers sbc, sbcx, quat-s and isac-s are prepared for this kinds of applications: in the lt-t (line termination at the t-reference point) mode, they deliver a clock signal that is synchronous to the incoming s-frame. this clock signal can be taken to synchronize the pcm clocks of the elic by means of a xtal controlled pll circuit. since the elic generates the iom-2 clocks for the connected layer-1 and layer - 2 devices, the loop is closed. if several layer-1 devices are operated in lt-t mode, only 1 device may be selected to deliver the reference clock. the pabx software must determine an active line by evaluating the c/i indications of the layer-1 devices in order to select an appropriate clock source for the pll. if several external lines are active, any of these lines can be taken, since the co lines are synchronous among each other. the layer-1 devices have a built-in frame buffer that compensates the phase offset that may persist between the iom-2 frame and the s 0 -frame. this buffer is elastic, such that a frame wander and jitter between the iom-2 and the s-frame can be tolerated up to a certain extent. the maximum wander value is device specific. for the sbcx, for example, 50 m s of frame deviation are internally compensated. if this value is exceeded, a frame slip occurs that is reported to the m p by a slip indication in the c/i code. if a frame slip occurs, the data of an s-frame may be lost or transferred twice. the slip indications can be evaluated for statistical purposes. however, in a final design with optimized pll tracking, slips should not occur during normal operation of the pbx. since the s 0 interface allows bus configurations for terminals (tes), and since it is physically possible to connect a pbx trunk line together with other pbx trunk lines, or with normal isdn terminals, to a common s-bus, the trunk lines must also follow the d-channel access procedure specified for isdn terminals. this d-channel access procedure is implemented in the quat-s, isac-s and sbcx devices and can optionally
peb 20550 pef 20550 application hints semiconductor group 345 01.96 be set. if not required, the d-channel can also be sent transparently. if the quat-s is used together with the idec as layer-2 controller, the idec must be informed about the availability of the d-channel at the t-interface. the quat-s provides an enable signal at pin drdy that carries this information during the d-channel timeslot. this signal can be connected to the collision data input (cdr) of the idec to enable or disable hdlc transmission. the idec must then be programmed to the slave mode in order to evaluate the cdr pin. figure 118 illustrates a complete pbx trunk card, where the elic controls up to 8 quat-s devices connected to up to 4 iom-2 ports. on each iom-2 port 2 idecs take care of the d-channel processing. the cdr input lines of the idecs are connected with the drdy output pins of the quat-s. this is to stop the hdlc controllers in case of a d-channel collision on the t-bus. the quat-s devices must be programmed via the monitor channel to deliver appropriate stop/go information at pin drdy. the 1536 khz reference clock outputs (pin clk1) of the quat-ss are fed via a multiplexer to the pbx clock generator. the m p controls the multiplexer as required by the state of the lines.
peb 20550 pef 20550 application hints semiconductor group 346 01.96 figure 118 pbx trunk card for multiple basic rate trunk lines using the quat-s its08098 1k w w k 1 +5 v v +5 4096 khz 8 khz 2048 kbit/s or 4096 kbit/s 4 x iom -2 r p sacco rxd3 txd3 rxd2 txd2 rxd1 txd1 txd0 rxd0 pdc pfs 3 dd 3 du dd2 du2 1 du 1 dd 0 du 0 dd fsc dcl r elic layer 1 interface signaling highway sd0x esc dcl cdr sd0r idec r r idec sd0r cdr dcl esc sd0x to pcm backplane clock generator id id fsc dcl clk1 drdy lt-t mode quat-s isdn t interface i o o i t interface isdn quat-s mode lt-t drdy 1 clk dcl fsc id id 2048 kbit/s +5 v 8 khz 4096 khz 4096 khz 8 khz 1536 khz ab sacco ports k w 1 clock source : t line with layer 1 activated 2048 kbit/s m u x p l l
peb 20550 pef 20550 application hints semiconductor group 347 01.96 initialization values for the idec that controls the lower 4 channels of the iom-2 interface: idec ? ccr = 1000 0010b = 82 h iom-2 mode, iom ch. 0 - 3, double clock rate, 256 bits/frame a_mode = 0000 1100b = 0c h uncond. trans., 16 kbit/s ch., channel and receiver active a_tsr = 0000 1100b = 0c h ch. a timeslot position: d channel of iom ch. 0 b_mode = 0000 1100b = 0c h uncond. trans., 16 kbit/s ch., channel and receiver active b_tsr = 0001 1100b = 1c h ch. b timeslot position: d channel of iom ch. 1 c_mode = 0000 1100b = 0c h uncond. trans., 16 kbit/s ch., channel and receiver active c_tsr = 0010 1100b = 2c h ch. c timeslot position: d channel of iom ch. 2 d_mode = 0000 1100b = 0c h uncond. trans., 16 kbit/s ch., channel and receiver active d_tsr = 0011 1100b = 3c h ch. d timeslot position: d channel of iom ch. 3 initialization values for the idec that controls the upper 4 channels of the iom-2 interface: idec ? ccr = 1000 0010b = a2 h iom-2 mode, iom ch. 4-7, double clock rate, 256 bits/frame a_mode = 0000 1100b = 0c h uncond. trans., 16 kbit/s ch., channel and receiver active a_tsr = 0100 1100b = 4c h ch. a timeslot position: d channel of iom ch. 4 b_mode = 0000 1100b = 0c h uncond. trans., 16 kbit/s ch., channel and receiver active b_tsr = 0101 1100b = 5c h ch. b timeslot position: d channel of iom ch. 5 c_mode = 0000 1100b = 0c h uncond. trans., 16 kbit/s ch., channel and receiver active c_tsr = 0110 1100b = 6c h ch. c timeslot position: d channel of iom ch. 6 d_mode = 0000 1100b = 0c h uncond. trans., 16 kbit/s ch., channel and receiver active d_tsr = 0111 1100b = 7c h ch. d timeslot position: d channel of iom ch. 7 the elic initialization is the same as for the iom-2 application described previously in this chapter.
peb 20550 pef 20550 application hints semiconductor group 348 01.96 if the d-channel access procedure is programmed, the idec mode registers must additionally be programmed accordingly i.e. for each channel mode = 2c h (instead of 0c h ). example in a first step, the quat-s in iom port 0, ch. 0 3 is programmed via the iom-2 monitor handler to the lt-t mode: w:omdr = ee h ; activation elic with handshake protocol enabled w:mfsar = 04 h ; monitor address of iom port 0, channel 0 w:cmdr_e = 01 h ; reset mffifo r:star_e = 25 h ; mffifo write access enabled w:mffifo = 81 h ; select quat-s configuration register w:mffifo = 41 h ; set lt-t mode, output clk1 w:cmdr_e = 04 h ; transmit mffifo content r:ista_e = 20 h ; mffi interrupt w:mfsar = 0c h ; monitor address of iom port 0, channel 1 w:cmdr_e = 01 h ; reset mffifo r:star_e = 25 h ; mffifo write access enabled w:mffifo = 81 h ; select quat-s configuration register w:mffifo = 01 h ; set lt-t mode w:cmdr_e = 04 h ; transmit mffifo content r:ista_e = 20 h ; mffi interrupt w:mfsar = 14 h ; monitor address of iom port 0, channel 2 w:cmdr_e = 01 h ; reset mffifo r:star_e = 25 h ; mffifo write access enabled w:mffifo = 81 h ; select quat-s configuration register w:mffifo = 01 h ; set lt-t mode w:cmdr_e = 04 h ; transmit mffifo content r:ista_e = 20 h ; mffi interrupt w:mfsar = 1c h ; monitor address of iom port 0, channel 3 w:cmdr_e = 01 h ; reset mffifo r:star_e = 25 h ; mffifo write access enabled w:mffifo = 81 h ; select quat-s configuration register w:mffifo = 01 h ; set lt-t mode w:cmdr_e = 04 h ; transmit mffifo content r:ista_e = 20 h ; mffi interrupt
peb 20550 pef 20550 application hints semiconductor group 349 01.96 5.9.2.2 small pbx figure 118 shows a realization example of a small pbx. if the total number of lines (internal or external) is smaller than the capacity of the elic (32 (2 b + d) or 64 b), the pcm interface of the elic need not to be connected to a switching network since all the b (and d) channel switching can be done inside the elic. in this special case, it is sufficient to apply only a pcm clock to the elic, the pcm frame synchronization signal (8 khz) can be omitted. the iom-2 clock and framing signals dcl and fsc are still generated correctly by the elic. the star:pss bit should then not be evaluated: it stays at logical 0 all the time. the pbx shown in the figure 118 offers 8 analog (t/r) subscriber lines, realized with two quadruple codec/filter devices sicofi-4 (peb 2465) and one digital, so subscriber interface realized with the sbcx (peb2081). the figure 119 also shows a digital trunk line (external line) which is realized with a u k - layer-1 device, iec-q (peb 2091), operated in nt-pabx mode. the pbx can therefore be connected directly to the u k interface coming from the co. the nt-pabx mode of the u k - layer-1 devices is similar to the lt-t mode of the s layer-1 devices: in both cases the layer-1 device delivers a reference clock which is synchronous to the received s or u k - frame and that can be used to synchronize the local pbx clock generator. any phase differences between the local iom-2 frame and the received s or u k - frame are compensated for in an elastic buffer inside the layer-1 devices. signaling control for the s 0 subscriber interface is performed by the elic sacco-a hdlc controller. since the digital trunk line also needs a d channel handler, the elic sacco-b hdlc controller is assigned to that iom-2 channel.
peb 20550 pef 20550 application hints semiconductor group 350 01.96 figure 119 small pbx with sicofi ? -4, sbcx and iec-q its08099 elic r dcl fsc dd0 du0 dd1 du1 2 du 2 dd du3 dd3 pfs pdc sacco a sacco b p dcl fsc in out d d lines filter device d d out in fsc dcl dcl fsc in out d d sbcx iec-q dcl fsc d d in out isdn s sicofi -4 quadruple codec analog analog lines quadruple codec filter device 1k w w k 1 +5 v +5 v 4096 khz 8 khz 2048 kbit/s 2048 kbit/s pll cls nt-pabx mode layer 512 khz reference clock synchronous to u 4096 khz isdn u interface to central office trunk line pcm interface: not used 4 x iom -2 ports r 0 r r sicofi -4 rxd3 txd3 rxd2 txd2 rxd1 txd1 txd0 rxd0 1 transceiver k
peb 20550 pef 20550 application hints semiconductor group 351 01.96 5.9.3 miscellaneous 5.9.3.1 interfacing the elic ? to a musac ? the pcm interface of the elic can easily be connected to the multipoint switching and conferencing circuit musac (peb 2245) when using the set-up and pcm timing as shown in figure 120 . this configuration can then for example be used in a pbx to implement conferencing functions for up to 21 simultaneous conferences. figure 120 interconnection example elic ? - musac ? its08100 elic r dcl fsc dd 0 du0 dd1 du1 2 du 2 dd du3 dd3 4 x 2048 kbit/s pfs pdc 4 x iom -2 ports r 4096 kbit/s sp clk out in 0 0 musac p 1 in in 2 in 3 in 4 in 5 in 6 in 7 out 3 2 out 1 out pcm backplane 4096 khz 8 khz rxd3 txd3 rxd2 txd2 rxd1 txd1 txd0 rxd0
peb 20550 pef 20550 application hints semiconductor group 352 01.96 figure 121 timing example to interconnect the elic ? and the musac ? on an iom ? -2 line card the following values must be programmed to the pcm and cfi registers of the elic and to the mod and cfr registers of the musac to obtain the desired pcm and iom-2 timing: elic ? pmod = 0100 0100 b =44 h pcm mode 1, single rate clock, pfs evaluated with falling clock edge, input selection rxd0 and rxd3, pcm comparison disabled pbnr = 1111 1111 b =ff h 512 bits (64 ts) per pcm frame pofd = 1111 0000 b =f0 h pfs marks downstream pcm ts0, bit 6 pofu = 0001 1000 b =18 h pfs marks upstream pcm ts0, bit 6 pcsr = 0100 0101 b =45 h pcm data received with falling, transmitted with rising clock edge cmd1 = 0010 0000 b =20 h pdc/pfs clock source, pfs evaluated with falling clock edge, prescaler = 1, cfi mode 0 cmd2 = 1101 0000 b =d0 h fc mode 6, double rate clock, cfi data transmitted with rising, received with falling clock edge cbnr = 1111 1111 b =ff h 256 bits (32 ts) per cfi frame itt08101 ts63, bit0 ts0, bit7 musac/elic r sp/pfs clk/pdc out#/txd# : in#/rxd# ts0, bit6 ts0, bit5 ts0, bit4 ts0, bit3 ts0, bit7 ts0, bit6 ts0, bit5 ts0, bit4 ts0, bit3 ts63, bit0
peb 20550 pef 20550 application hints semiconductor group 353 01.96 ctar = 0000 0010 b =02 h pfs marks downstream cfi ts0 cbsr = 0010 0000 b =20 h pfs marks downstream cfi bit 6, upstream bits not shifted cscr = 0000 0000 b =00 h 64, 32, 16 kbit/s channels located on cfi bits 70, 74, 76 musac ? mod = 0100 0100 b =03 h input mode 8 4m, output mode 4 4m cfr = 1111 1111 b =de h 4.096 mhz device clock, conferencing mode, a-law, even bits inverted 5.9.3.2 space and time switch for 16 kbit/s channels the elic is optimized for the space and time switching of 64 kbit/s channels (8 bit timeslots). the switching of 32 and 16 kbit/s subchannels is also supported, but these channels can only be freely selected at the pcm interface. at the cfi, only one subchannel per 8 bit timeslot can be switched (see chapter 5.4.2 ). usually, this is sufficient because on the iom-2 interface, only one 16 kbit/s d channel per timeslot needs to be switched. up to four d channels may then be combined into a single 8 bit pcm timeslot. if a completely flexible space and time switch for contiguous 16 kbit/s channels is required, the following method can be used: the four cfi ports are connected in parallel as shown in figure 122 . each cfi port is programmed via the cfi subchannel register (cscr) to handle a different 2 bit sub- timeslot position. with this configuration, any mixture of 16, 32 and 64 kbit/s channels may be switched between the cfi and the pcm interfaces. up to 128 16 kbit/s channels per direction can be handled by the elic. the switching software must select the cfi port number according to the required cfi subchannel position for each cfi - pcm connection. the pcm subchannel position is selected via the control memory (cm) code field (see table 40 ). for 32 and 64 kbit/s connections, only one cfi port of a given timeslot may be programmed in order to avoid collisions on the cfi bus.
peb 20550 pef 20550 application hints semiconductor group 354 01.96 figure 122 non-blocking space and time switch for 16 kbit/s channels its08102 elic r dcl fsc dd 0 du0 dd1 du1 2 du 2 dd du3 dd3 dd du 128 x 16 kbit/s pfs pdc sacco a sacco b 128 x 16 kbit/s sc01...00 = 11 dd0/du0 dd1/du1 sc11...10 = 10 sc21...20 = 01 dd2/du2 dd3/du3 sc31...30 = 00 cscr = 1b dd/du h rxd3 txd3 rxd2 txd2 rxd1 txd1 txd0 rxd0
semiconductor group 355 01.96 peb 20550 pef 20550 application notes 6 application notes 6.1 example of elic ? operation in a digital pbx 6.1.1 introduction in an isdn system the digital line card connects subscribers to the pcm highway as well as to each other. the optimum controlling device for such a line card is the extended line card interface controller (elic) peb 20550. integrating the pcm interface controller epic, two independent hdlc controllers sacco-a and sacco-b, and a d- channel arbiter onto a single chip, the elic offers a high degree of specialisation, while maintaining wide-ranging flexibility. figure 123 digital pbx this application note demonstrates operation of the elic as the key device of the digital pbx shown in figure 123 , by establishing a connection from subscriber a to subscriber b. in this application the configurable interface (cfi) of the epic is set to iom-2 (lc) protocol, and thus the d-channel arbiter is used to link the sacco-a to the cfi. in particular this application note will show: C how to initialize the elic cfi and pcm interface C how to initialize sacco-a and d-channel arbiter to handle d-channel data C how to initialize the sacco-b to communicate via the pcm highway C how to initialize the elic control memory to handle, monitor, control, and b-channels C how to use the elic c/i channel to control the octat-p C how to use the sacco-a for d-channel communication with subscribers C how to switch a telephone connection between subscribers a and b. as a starting position this application note assumes that elic and octat-p have been reset. its08103 saccob elic r p iom -2 (lc) r octat -p + r transceivers digital line card u pn subscriber a subscriber b subscriber x pcm hdlc group controller network switching pn u pn u
semiconductor group 356 01.96 peb 20550 pef 20550 application notes 6.1.2 basic initialization this part of the application note modifies the initialization example of the elic technical manual to interface two digital iom-2 subscribers to a 2 mbit pcm 30 switching network. as shown below, the elic is configured to accept a 4 mhz clock as pdc and hdcb input and to output a cfi clock and frame sync. figure 124 principal elic ? interfaces its08104 epic r iom -2 r (lc) pfs sacco b sacco a d channel arbiter fsc dcl pdc 8 khz 4 khz pcm 30 rxdb/txdb hdcb hfsb
semiconductor group 357 01.96 peb 20550 pef 20550 application notes 6.1.2.1 epic ? interface initialization configuration of the pcm interface: set-up to meet the requirements of the switching network (as for w&g pcm 4 measurement device) write pmod = 20 h pcm mode 0, double rate clock (4 mhz, 2 mbit/s), pfs evaluated with falling edge of pdc write pbnr = ff h 256 bits per pcm frame write pofd = f1 h with bpf = 256, the internal pfs marks downstream bit number (bnd) 2; for detail, refer to the application hints, figure 62 write pofu = 19 h the internal pfs marks upstream bit number (bnu) 2; for detail, refer to the application hints, figure 62 write pcsr = 01 h no clock shift; pcm data sampled with falling, transmitted with rising pdc configuration of the cfi side: set-up for iom-2 subscribers write cmd1 = 20 h pdc and pfs used as clock and framing source for the cfi; crcl = pdc; prescaler divisor = 1; cfi mode 0 write cmd2 = d0 h fsc shaped for iom 2 interface; dcl = 2 x data rate; cfi data received with falling, transmitted with rising crcl write cbnr = ff h 256 bits per cfi frame write ctar = 02 h pfs is to mark cfi time slot 0 write cbsr = 20 h pfs is to mark bit 7 of cfi time slot 0; no shift of cfi upstream data relative to cfi downstream data write cscr = 00 h 2 bit channels located in positions 7, 6 on all cfi ports 6.1.2.2 sacco-a initialization initialization of sacco-a for operation with d-channel arbiter: write mode = 98 h transparent mode 0; continuous frame transmission switched on; hdlc receiver active; test loop disabled write ccr1 = 87 h power up; point-to-point configuration. idle sequences as interframe output; double rate data clock; clock mode 3 reset sacco-a: write cmdr = c1 h receive message complete (rmc); reset hdlc receiver (rhr); transmitter reset (xres) read ista_a= 10 h transmit pool ready
semiconductor group 358 01.96 peb 20550 pef 20550 application notes 6.1.2.3 basic d-channel arbiter initialization write amo = 69 h full selection counter set to general worst case delay of 14 frames; suspend counter active; arbiter control via c/i channel; control channel activated 6.1.2.4 sacco-b initialization initialization of sacco-b for communication, via the pcm highway, with the (non-pbc) group controller: write mode = 48 h 8 bit non-auto mode; continuous frame transmission off; hdlc receiver active; test loop disabled write tsax = 0b h assign transmit time slot 3: set xcs bits to shift output window to time slot 1, set tsnx1 bit to delay the output window by 2 time slots write tsar = 0b h assign receive time slot 3: set rcs bits to shift input window to time slot 1, set tsnr1 bit to delay the input window by 2 time slots write xccr = 07 h 8 bits transmitted per output window write rccr = 07 h 8 bits received per input window write ral1 = 09 h receive address write ral2 = fe h broadcast receive address write ccr2 = 38 h set xcs and rcs bits (see tsax, tsar); enable txdb pin write ccr1 = 9e h power up; point-to-point configuration; push-pull output; flags as interframe time fill; double-rate data clock; clock mode 2 reset sacco-b: write cmdr = c1 h rmc; rhr; xres read ista_b= 10 h transmit pool ready
semiconductor group 359 01.96 peb 20550 pef 20550 application notes 6.1.3 elic ? cm and octat-p initialization this part of the application note completes the initialization of the elic, and thus of the line card, by setting the control memory (cm) of the elic to handle the monitor and control time slots of two digital iom-2 subscribers. as shown below, the octat-p is set into the deactivated (idle) state: figure 125 idle state of line card with elic ? and octat-p note that the cm of the elic is not reset with a physical elic reset. thus, the first step in initializing the cm is to set all addresses to unassigned channel. next, the monitor and control time slot pairs are programmed for both iom-2 channels. for a detailed description of cm handling please refer to chapter 5.3 of the application hints. with the cm initialized, the cfi and pcm interfaces can be activated. finally, the octat-p is set into the deactivated (idle) state by the appropriate c/i code. its08105 11 10 0 code field data field control memory 0x 0 0 1 01 0 0 1 11 11 1 xxxxxxx 1 0 0 1 x x x x x x x 11 1 x 1 c/i value c/i value 11 1 1 1 r 'info 0' u pn c/i code '1111' c/i code '1111' r iom -2 octat -p r elic
semiconductor group 360 01.96 peb 20550 pef 20550 application notes 6.1.3.1 resetting the cm (write) omdr = 00 h reset value: cm reset mode write madr = ff h all cm data positions are set to ff h write macr = 70 h upper nibble: write cm data and code lower nibble: set cm code to unassigned channel 6.1.3.2 initializing the cm write omdr = 80 h set epic to cm init mode note: when writing to memory access registers the star_e:mfto bit must be logical 0. downstream: initializing monitor and control time slot pair for iom-2 channel 0 write maar = 08 h downstream cm address: port 0, ts2 write madr = c3 h write 0000 as c/i code (deactivate request) write macr = 7a h upper nibble: write cm data and code lower nibble: set cm code for the downstream even address of a sacco-a application write maar = 09 h downstream cm address: port 0, ts3 write macr = 7b h upper nibble: write cm data and code lower nibble: set cm code for the downstream odd address of a sacco-a application downstream: initializing monitor and control time slot pair for iom-2 channel 1 write maar = 18 h downstream cm address: port 0, ts6 write madr = c3 h write 0000 as c/i code (deactivate request) write macr = 7a h upper nibble: write cm data and code lower nibble: set cm code for the downstream even address of a sacco-a application write maar = 19 h downstream cm address: port 0, ts3 write macr = 7b h upper nibble: write cm data and code lower nibble: set cm code for the downstream odd address of a sacco-a application upstream: initializing monitor and control time slot pair for iom-2 channel 0 write maar = 88 h upstream cm address: port 0, ts2 write madr = ff h 1111 expected as c/i code (deactivate indication) write macr = 78 h upper nibble: write cm data and code lower nibble: set cm code for the upstream even address of a decentral application write maar = 89 h upstream cm address: port 0, ts3 write macr = 70 h upper nibble: write cm data and code lower nibble: set cm code for the upstream odd address of a decentral application
semiconductor group 361 01.96 peb 20550 pef 20550 application notes upstream: initializing monitor and control time slot pair for iom-2 channel 1 write maar = 98 h upstream cm address: port 0, ts6 write madr = ff h 1111 expected as c/i code (deactivate indication) write macr = 78 h upper nibble: write cm data and code lower nibble: set cm code for the upstream even address of a decentral application write maar = 99 h upstream cm address: port 0, ts7 write macr = 70 h upper nibble: write cm data and code lower nibble: set cm code for the upstream odd address of a decentral application 6.1.3.3 cfi activation write omdr = ce h change to normal op mode; set cfi outputs to open drain and activate them; enable monitor handshake read ista = 48 h interrupts: spurious c/i change due to cfi start-up; pcm sync change write cmdr = 10 h reset c/i fifo (ignore spurious c/i change) read star = 25 h all in order and synchronized 6.1.3.4 pcm interface activation write madr = f0 h upper nibble: dont care lower nibble: all bits set to high impedance write macr = 68 h write madr to all tristate memory locations write omdr = ee h activate the pcm interface 6.1.3.5 deactivating the octat-p to change the signalling for iom-2 channel 0 write maar = 08 h downstream cm address: port 0, ts2 write madr = ff h write 1111 as c/i code (deactivate confirmation) write macr = 48 h write to the cm data field to change the signalling for iom-2 channel 1 write maar = 18 h downstream cm address: port 0, ts6 write macr = 48 h write to the cm data field the line card is now completely initialized.
semiconductor group 362 01.96 peb 20550 pef 20550 application notes 6.1.4 line activation by subscriber a when subscriber a takes the receiver off the hook, the layer-1 device (e.g. the isac-p te) of terminal a activates the physical layer between itself and the line card. figure 126 call-up by subscriber a the elic reports this activation by signalling an interrupt. to allow the d-channel arbiter to monitor subscriber a, the line activation must be confirmed and the d-channel arbiter of the elic enabled for the subscriber. with d-channel communications between the subscriber and the elic established, the etsi / e-dss1 protocol can be followed to build up layers 2 and 3. 6.1.4.1 handling of c/i interrupt when subscriber a hooks off, the elic signals an interrupt: read ista_e= 40 h at least one valid entry in c/i fifo read cififo = 88 h change in c/i value at port 0, time slot 2 (iom-2 channel 0) if the m p responds slowly, the elic continues signalling an interrupt: read cififo = 88 h second change in c/i value at port 0, time slot 2 if the m p responds slowly, the elic continues signalling an interrupt: read cififo = 88 h third change in c/i value at port 0, time slot 2 interrupt no longer signalled by the elic: when subscriber a hooks off, the elic reports three changes of the c/i code from the octat-p. reading the current upstream c/i value of iom-2 channel 0: write maar = 88 h upstream cm address where c/i value changed write macr = c8 h read data from the cm data field read madr = f3 h upstream c/i code 1100 (active indication) ? the subscriber of iom-2 channel 0 has activated his line its08106 saccob elic r p iom -2 (lc) r octat -p + r transceivers digital line card u pn subscriber a subscriber b pcm hdlc group controller network switching pn u
semiconductor group 363 01.96 peb 20550 pef 20550 application notes 6.1.4.2 confirmation of line activation write madr = f3 h set downstream c/i code to 1100 (active, but with the arbitration control bit set to blocked) write maar = 08 h downstream cm address: port 0, ts2 write macr = 48 h write to the cm data field 6.1.4.3 enabling the arbiter write dce0 = 01 h enable the d-channel arbiter to monitor the d-channel of iom-2 port 0, channel 0 the d-channel arbiter is now resetting the downstream arbitration control bit of iom-2 port 0, channel 0 to available (c/i code 1000) ? the elic is now ready to receive d-channel data from subscriber a. 6.1.4.4 build-up of layer 2 with layer-1 communications established, terminal a initiates layer-2 build-up with an ui-frame; on receiving this ui-frame, the elic will signal an interrupt: read ista = 02 h interrupt at sacco-a read ista_a= 80 h receive message end (rme) interrupt read rbcl = 09 h 9 byte in rfifo: 8 bytes received + rsta byte read rfifo = ui-frame: id request rsta byte= 80 h ? frame received from iom-2 port 0, channel 0 ok write cmdr = 80 h reset cpu accessible portion of rfifo assigning an id to the terminal: write xdc = 00 h direct sacco-a transmission to iom-2 port 0, channel 0 write xfifo = ui-frame: id assignment (8 bytes) write cmdr = 0a h transmit transparent frame; transmit message end read ista_a= 10 h transmit pool ready (xpr) next, the terminal indicates that it wishes to use extended asynchronous-balanced mode. this message, as well as further d-channel communication between terminal and elic, is shown in abbreviated form: received at rfifo of sacco-a from terminal a: u-frame: sabme sent from xfifo of sacco-a to terminal a: unnumbered acknowledge
semiconductor group 364 01.96 peb 20550 pef 20550 application notes 6.1.4.5 build-up of layer 3 with layer-2 communications set up, terminal a initiates layer-3 build-up as follows: received at rfifo of sacco-a from terminal a: i-frame: set-up (with service indicator) sent from xfifo of sacco-a to terminal a: i-frame: set-up acknowledge received at rfifo of sacco-a from terminal a: receiver ready (as acknowledgement) 6.1.5 dialling the desired link with layer-3 communication established, subscriber a can dial the desired link. every digit dialled is transmitted individually from the terminal via the d-channel to the sacco- a. if terminal a desires a link with a subscriber on another line card, the number dialled is passed via the sacco-b to the hdlc group controller. in the current example, however, terminal a wishes to communicate with terminal b. the desired connection can thus be looped within the elic. 6.1.5.1 reception of dialled numbers at sacco-a received at rfifo of sacco-a from terminal a: i-frame: 1 st digit dialled sent from xfifo of sacco-a to terminal a: receiver ready (as acknowledgement) in most pbxs, a special digit is used for outside calls. in this example, the first digit did not specify an outside call. thus, the number of digits to follow is fixed (i.e. 3 more digits). the m p on the line card will collect these digits before deciding about passing them to the group controller. received at rfifo of sacco-a from terminal a: i-frame: 2 nd digit dialled sent from xfifo of sacco-a to terminal a: receiver ready (as acknowledgement) received at rfifo of sacco-a from terminal a: i-frame: 3 rd digit dialled sent from xfifo of sacco-a to terminal a: receiver ready (as acknowledgement) received at rfifo of sacco-a from terminal a: i-frame: 4 th digit dialled sent from xfifo of sacco-a to terminal a: receiver ready (as acknowledgement)
semiconductor group 365 01.96 peb 20550 pef 20550 application notes 6.1.5.2 preparing to loop data from terminal a to terminal b with all digits received, the m p on the line card recognizes that the desired connection can be switched by looping b-channels within the elic. to prepare this loop between terminal a and terminal b the upstream b-channels are first switched to spare pcm time slots. as the tristate field of these pcm time slots is not changed from its initialization value (high impedance), the data is not switched to the pcm lines. upstream: b1 time slot of iom-2 channel 0 to pcm port 0, time slot 1 write madr = 81 h upstream connection: (to) pcm port 0, ts1 write maar = 80 h upstream cm address: (from) cfi port 0, time slot 0 write macr = 71 h upper nibble: write cm data and code lower nibble: set cm code for 64 kbit/s (8 bit) switching upstream: b1 time slot of iom-2 channel 1 to pcm port 0, time slot 2 write madr = 88 h upstream connection: (to) pcm port 0, ts2 write maar = 90 h upstream cm address: (from) cfi port 0, time slot 4 write macr = 71 h upper nibble: write cm data and code lower nibble: set cm code for 64 kbit/s (8 bit) switching 6.1.6 calling up subscriber b part 4 of this application note described the preparations for looping data from subscriber a to subscriber b. up to this moment, however, subscriber b does not yet know that subscriber a wishes to communicate with him. in this part of the application note terminal b is alerted. 6.1.6.1 activating the line to subscriber b first the elic activates that part of the octat-p that connects to terminal b. the octat-p activates and synchronizes the layer-1 device on terminal b before confirming the activation to the elic. elic initiates activation of subscriber bs u pn line: write madr = f3 h set downstream c/i code to 1100 (active, blocked) write maar = 18 h downstream cm address: cfi port 0, time slot 6 write macr = 48 h write data to the cm data field as the line becomes active, the elic will signal an interrupt: read ista_e= 40 h at least one valid entry in c/i fifo read cififo = 98 h change in c/i value at port 0, time slot 6 (iom-2 channel 1) if the p responds slowly, the elic will continue signalling an interrupt: read cififo = 98 h second change in c/i value at port 0, time slot 6 if the p responds slowly, the elic will continue signalling an interrupt: read cififo = 98 h third change in c/i value at port 0, time slot 6 interrupt no longer signalled by the elic: during activation of the line to subscriber b, the elic reports three changes of the c/i code from the octat-p.
semiconductor group 366 01.96 peb 20550 pef 20550 application notes reading the current upstream c/i value of iom-2 channel 0: write maar = 98 h upstream cm address where c/i value changed write macr = c8 h read data from the cm data field read madr = f3 h upstream c/i code 1100 (active indication) ? confirmation that the line of iom-2 channel 1 is active 6.1.6.2 enabling the arbiter with the layer-1 link to terminal b established, the d-channel arbiter is set to monitor subscriber b in addition to subscriber a: write dce0 = 03 h enable the d-channel arbiter to monitor the d-channels of iom-2 port 0, channels 1 and 0 the d-channel arbiter is now resetting the downstream arbitration control bit of iom- 2 port 0, channels 0 and 1 to available (c/i code 1000) ? the elic is now ready to receive d-channel data from subscribers a and b. 6.1.6.3 build-up of layer 2 the elic now being ready to communicate to terminal b via the d-channel, layer-2 communication can be built up according to the etsi / e-dss1 protocol. first, the elic sends an ui-frame to the terminal being called up; as in chapter 6.1.4.4 , the d-channel communication that follows is shown in abbreviated form: assigning an id to the terminal: write xdc = 01 h direct sacco-a transmission to iom-2 port 0, channel 1 write xfifo = ui frame: set_up (with service indicator) write cmdr = 0a h transmit transparent frame; transmit message end read ista_a= 10 h transmit pool ready (xpr) received at rfifo of sacco-a from terminal b: ui-frame: id_request sent from xfifo of sacco-a to terminal b: ui-frame: id_assigned received at rfifo of sacco-a from terminal b: u-frame: sabme sent from xfifo of sacco-a to terminal b: unnumbered acknowledge
semiconductor group 367 01.96 peb 20550 pef 20550 application notes 6.1.6.4 build-up of layer 3 with layer-2 communications set up, terminal b initiates layer-3 build-up as follows: received at rfifo of sacco-a from terminal b: i-frame: alerting sent from xfifo of sacco-a to terminal b: receiver ready (as acknowledgement) ? phone b rings ! subscriber a is now informed that subscriber b is being alerted: write xdc = 00 h direct sacco-a transmission to iom-2 port 0, channel 0 sent from xfifo of sacco-a to terminal a: i-frame: alerting received at rfifo of sacco-a from terminal a: receiver ready (as acknowledgement) terminal a will now provide subscriber a with a tone that signals to subscriber a that subscriber b is being alerted. 6.1.7 completing the call when subscriber b answers the call, terminal indicates hook-off to the elic via a d-channel message. the data loop that was prepared in chapter 6.1.5.2 can now be closed. finally, the hook-off information is acknowledged to terminal b and passed to terminal a. this indicates to the terminals that their subscribers can start communication. 6.1.7.1 receiving the hook-off information at the elic ? when subscriber b answers the call, the elic will signal a rme interrupt: received at rfifo of sacco-a from terminal b: i-frame: connected write xdc = 01 h direct sacco-a transmission to iom-2 port 0, channel 1 sent from xfifo of sacco-a to terminal b: receiver ready
semiconductor group 368 01.96 peb 20550 pef 20550 application notes 6.1.7.2 closing the data loop with both subscribers ready at their terminals, the data loop between them can be closed: downstream: pcm port 0, time slot 2 to the b1 time slot of iom-2 channel 0 write madr = 08 h downstream connection: (from) pcm port 0, ts2 write maar = 00 h downstream cm address: (to) cfi port 0, time slot 0 write macr = 71 h upper nibble: write cm data and code lower nibble: set cm code for 64 kbit/s (8 bit) switching downstream: pcm port 0, time slot 1 to the b1 time slot of iom-2 channel 1 write madr = 01 h downstream connection: (from) pcm port 0, ts1 write maar = 10 h downstream cm address: (to) cfi port 0, time slot 4 write macr = 71 h upper nibble: write cm data and code lower nibble: set cm code for 64 kbit/s (8 bit) switching 6.1.7.3 giving both terminals the go-ahead to transceive data finally, the elic informs both terminals that the connection has been made. this acts as the go-ahead to pass their subscriber's data, via the elic, to the other subscriber: sent from xfifo of sacco-a to terminal b: i-frame: connect acknowledgement received at rfifo of sacco-a from terminal b: receiver ready (as acknowledgement) write xdc = 00 h direct sacco-a transmission to iom-2 port 0, channel 0 sent from xfifo of sacco-a to terminal a: i-frame: connected received at rfifo of sacco-a from terminal a: receiver ready (as acknowledgement) the connection has been established, and subscribers a and b can now communicate.
semiconductor group 369 01.96 peb 20550 pef 20550 application notes 6.2 d-channel delay due to arbitration when using d-channel arbitration, the elic notifies subscribers when the sacco-a is available to receive d-channel data. as several subscribers may start sending data concurrently, the elic arbitrates among the subscribers: one subscriber is permitted to continue sending data, while the other subscribers are blocked until the sacco-a has completed reception of the data of the selected subscriber. when blocked, subscribers have to wait until the sacco-a becomes available for accepting their data. how long subscribers have to wait depends on the number of subscribers who wish to send data, as well as on the average number of bytes that subscribers wish to send in their hdlc frame. the subsequent investigation details the delay parameters and gives average delay times for typical s 0 and u pn applications. theoretical derivation using the limited selection state, the elic effectively arbitrates among subscribers according to a token ring protocol. let m C 1 be the number of subscribers already wishing to send data to the elic when an m-th subscriber enters the arbitration. the length of time that the subscriber has to wait will then depend on the position of the token in the ring. at best, the subscriber enters the arbitration just as it is passed the token. that is, the subscriber starts to send his data just as the elic becomes ready to listen to it. regardless of the number of competing subscribers, the subscriber will then encounter no delay. the minimum delay time is thus always 0 milliseconds. at worst, the subscriber enters the arbitration just after the token has passed. the subscriber will then have to wait for all m C 1 competing subscribers to send their data before his own data is accepted. due to the linearity of token-bus statistics, the average subscriber will thus have to wait for (m C 1)/2 subscribers to send their data before his own data is accepted by the elic. now, to determine the total time a subscriber will have to wait, let x be the average length of the hdlc frame (including address and control bytes) that subscribers wish to send. including the opening and the closing flag as well as the crc word, the hdlc message thus extends over x + 4 hdlc bytes. additionally, the hdlc protocol inserts a 0 bit after 5 consecutive 1 bits. of course, the precise number of inserted 0 bits will depend on the content of the hdlc frame. a conservative estimate will allow for one 0 bit inserted into every second hdlc byte. with every second hdlc byte extended by 1 / 8 byte, 1 / 16 of a byte must be added to every hdlc byte. similarily, for the two-byte crc sum 1 / 8 of a byte is added. including inserted 0 bits, an hdlc message thus extends over 17 / 16 x + 33 / 8 byte.
semiconductor group 370 01.96 peb 20550 pef 20550 application notes 2 hdlc bits are sent in every iom-2 frame. the average message thus requires 4 ( 17 / 16 x + 33 / 8 ), or ( 17 / 4 x + 33 / 2 ) iom-2 frames for transmission. since every iom-2 frame takes 125 m s, the formula for the average waiting time is: t= 125 m s 1 / 2 (m C 1)[( 17 / 4 x + 33 / 2 ) + y] = (m C 1)[265.625 m s x + 62.5 m s (16.5 + y)] in this formula, the parameter y allows for the time it takes subscribers to respond to the availablilty of the sacco-a. as exemplified by the basic rate application that follows, the y parameter depends on application specific features such as double-last-look logic, collision detection and interface delays. s 0 application example the following figure shows a typical s 0 application of the elic: figure 127 basic rate application of elic ? to derive the response delay y of this architecture, note that the double-last-look logic of the quat-s delays recognition of the available c/i code by one frame. another its08107 quat-s isac -s r subscriber 1 basic rate subscribers 0 s quat-s r isac -s subscriber n r elic iom -2 r cfi ports
semiconductor group 371 01.96 peb 20550 pef 20550 application notes (max.) 6 frames delay are due to interface delays and to the isac-s waiting for 8 non- inverted e-bits prior to sending data. this is shown in figure 128 below: figure 128 response delay of typical s 0 applications according to figure 127 the system-specific response delay of the s 0 architecture shown in figure 127 is thus y = 1 + 6 = 7. the delay time experienced by the average s 0 subscriber is then: t= 125 m s 1 / 2 (m C 1)[( 17 / 4 x + 33 / 2 ) + 7] = (m C 1)[265.625 m s x + 1468.75 m s] itd08108 iom frame 1 r 123 0 s dd downstream control channel first set as "available" recognized as "available" control channel first first non-inverted "e"-bit dd frame 4 4 5 6 7 8th non-inverted "e" bit downstream upstream first valid d-bit sent by isac -s r frame 4 du s 0 s 0 iom frame 2 r iom frame 3 r iom frame r iom frame 5 r iom frame 6 r iom frame 7 r iom frame 5 r iom frame 6 r iom frame 7 r
semiconductor group 372 01.96 peb 20550 pef 20550 application notes the following table 52 gives these delay times for a variety of competing subscribers and hdlc frame lengths: as has been shown theoretically, the maximum (worst case) delay time is twice the average delay time for any set of subscribers and frame lengths, whereas the minimum delay time is always 0 m s. the following example shows how to interpret table 52 . example: for the system of figure 127 , let n = 32 (total number of enabled subscribers), let the average hdlc frame length = 20 byte. assume that, during peak traffic times (e.g 10 a.m.), an average of 10 subscribers wishes to send data to the sacco-a concurrently. then the average delay for access to the sacco-a will be 61.03 ms. the worst case delay will be 122.06 ms, whereas the minimum delay will be 0 ms. assume that, during times of little demand (e.g 10 p.m.), an average of 2 subscribers wishes to send data to the sacco-a concurrently. then the average delay for access to the sacco-a will be 6.78 ms. the worst case delay will be 13.56 ms, whereas the minimum delay will be 0 ms. average waiting times in the example system will thus vary between 61.03 ms and 6.78 ms. table 52 average delay times for the s 0 application of figure 127 (in ms) average length of hdlc frames (in byte) number of subscribers 1 2 3 5 10 20 32 5 0.00 2.80 5.59 11.19 25.17 53.14 86.70 10 0.00 4.13 8.25 16.50 37.13 78.38 127.88 20 0.00 6.78 13.56 27.13 61.03 128.84 210.22 40 0.00 12.09 24.19 48.38 108.84 229.78 374.91 80 0.00 22.72 45.44 90.88 204.47 431.66 704.28 200 0.00 54.59 109.19 218.38 491.34 1037.28 1692.41 500 0.00 134.28 268.56 537.13 1208.53 2551.34 4162.72 1000 0.00 267.09 534.19 1068.38 2403.84 5074.78 8279.91 2000 0.00 532.72 1065.44 2130.88 4794.47 10121.7 16514.3
semiconductor group 373 01.96 peb 20550 pef 20550 application notes u pn application example the following figure 129 shows a typical u pn application of the elic: figure 129 u pn application of elic ? its08109 quat-s isac -s r subscriber 1 subscribers pn u quat-s r isac -s subscriber n r elic iom -2 r cfi ports u pn (te) (te)
semiconductor group 374 01.96 peb 20550 pef 20550 application notes from chapter 2.2.8.3 . of the elic technical manual, the average response delay of this u pn application is found to be y = 6 frames. thus t = (m C 1)[265.625 m s x + 1406.25 m s], and the average waiting time is in closing, note that the only element of the delay time formula to change between varying systems is the system-specific response delay y. this y-parameter, however, affects the actual average delay time t only slightly. the delay times of table 52 thus differ little from those of table 52 . indeed, unless their response delays differ drastically from those above, most architectures will find their average delay times well approximated by tables 52 and 52 . table 53 average delay times for the u pn application of figure 129 (in ms) average length of hdlc frames (in byte) number of subscribers 1 2 3 5 10 20 32 5 0.00 2.73 5.47 10.94 24.61 51.95 84.77 10 0.00 4.06 8.13 16.25 36.56 77.19 125.94 20 0.00 6.72 13.44 26.88 60.47 127.66 208.28 40 0.00 12.03 24.06 48.13 108.28 228.59 372.97 80 0.00 22.66 45.31 90.63 203.91 430.47 702.34 200 0.00 54.53 109.06 218.13 490.78 1036.09 1690.47 500 0.00 134.22 268.44 536.88 1207.97 2550.16 4160.78 1000 0.00 267.03 534.06 1068.13 2403.28 5073.59 8277.97 2000 0.00 532.66 1065.31 2130.63 4793.91 10120.5 16512.3
semiconductor group 375 01.96 peb 20550 pef 20550 application notes 6.3 behaviour of the sacco-a when a rfifo overflow occurs when using the elic sacco-a hdlc controller in conjunction with the d-channel arbiter there might be a critical situation when a rfifo overflow occurs. the situation can be managed by software solution. the following text describes this situation and advices how to manage it. please refer also to page 82f . precondition for the critical situation: the elic d-channel arbiter is activated to serve all d-channels (register amo:cchm = 1, refer to chapter 4.8.1 ), that have been enabled in the dce3..0 registers (refer to page 188f ). the elic sacco-a receives a frame of one of the enabled d-channels, although there is not enough space for the whole frame in its rfifo. a previously generated rme interrupt has not yet been served. figure 130 itd08456 sus- pended frame expect full selection receive frame limited selection sacco_a : frame sacco_a : frame indication elic reset or clock mode <>3 r receive message complete command (cmdr = 80) clock mode <>3 end indication
semiconductor group 376 01.96 peb 20550 pef 20550 application notes problem description: assuming the arbiter is in the state full selection, it will change to the state expect frame and then receive frame, as soon as the opening flag of the hdlc frame (frame indication) is detected. the sacco_a will then start to copy the received data to the rfifo. usually (if there is enough space for the whole frame + 1 byte) the arbiter would abandon this state at frame end and enter the state limited selection. in the case, where there is not enough space for the whole frame + 1 byte, the arbiter will not get the frame end indication and the d-channel arbiter stays in the state receive frame. explanation: the reason for this behaviour is, that the frame end indication is send to the arbiter as soon as the receive status byte (rsta) is written to the fifo. so if there is no space for the rsta byte in the rfifo, the arbiter will not receive a frame end indication. resulting behaviour: sucessive frames will not be rejected (no blocking information is being send), but lead to a receive frame overflow interrupt of the elic. this behaviour makes the sending hdlc controller believe, it can continue in sending new frames, whereas all other channels still get the blocked information. how to manage the situation: in order to stop the hdlc controller from transmitting and give the other hdlc controllers a chance to be arbitrated, the arbiter state receive frame must be abandoned, as soon as the elic indicates this situation (e.g. receive frame overflow interrupt). this can be achieved by 2 possibilities: 1. switching the clock mode (ccr1:cm1..0) unequal 3. the result is a change to the arbiter state suspended 2. sending a receive message complete command (cmdr = 80) to the sacco_a. this generates internally a frame end and the arbiter changes to the state limited selection. note: if the command reset hdlc receiver (cmdr:rhr = 1) is performed, the arbiter is not reset and stays in the state receive frame until a new frame has been sent, or the clock mode is changed, as described before.
peb 20550 pef 20550 electrical characteristics semiconductor group 377 01.96 7 electrical characteristics absolute maximum ratings note: stresses above those listed here may cause permanent damage to the device. exposure to absolute maximum ratings conditions for extended periods may affect device reliability. maximum ratings are absolute ratings; exceeding only one of these values may cause irreversible damage to the integrated circuit. parameter symbol limit values unit min. max. ambient temperature under bias: peb pef t a t a 0 C 40 70 85 c c storage temperature t stg - 65 125 c voltage on any pin with respect to ground v s - 0.4 v dd + 0.4 v maximum voltage on any pin v max 6v characteristics peb: t a = 0 to 70 c; v dd = 5 v 5 %, v ss = 0 v pef: t a = C 40 to 85 c; v dd = 5 v 5 %, v ss = 0 v parameter symbol limit values unit test condition min. max. l-input voltage v il - 0.4 0.8 v h-input voltage v ih 2.0 v dd + 0.4 l-output voltage v ol 0.45 v i ol = 7 ma (pins txda, txdb, txd0-3, du0-3, dd0-3) i ol = 2 ma (all other) h-output voltage h-output voltage v oh v oh 2.4 v dd - 0.5 v v i oh = - 400 m a i oh = - 100 m a
peb 20550 pef 20550 electrical characteristics semiconductor group 378 01.96 note: the listed characteristics are ensured over the operating range of the integrated circuit. typical characteristics specify mean values expected over the production spread. if not otherwise specified, typical characteristics apply at t a = 25 c and the given supply voltage. power supply current operational i cc 15 ma v dd = 5 v, pdc = 8 mhz, hdca/b = 4 mhz power down 3 ma input at 0 v/ v dd , no output loads input leakage current output leakage current i li i lo 1 m a0 v < v in < v dd to 0 v 0 v < v out < v dd to 0 v characteristics (contd) peb: t a = 0 to 70 c; v dd = 5 v 5 %, v ss = 0 v pef: t a = C 40 to 85 c; v dd = 5 v 5 %, v ss = 0 v parameter symbol limit values unit test condition min. max.
peb 20550 pef 20550 electrical characteristics semiconductor group 379 01.96 capacitances ac-characteristics ambient temperature under bias range, v dd = 5 v 5 %. inputs are driven to 2.4 v for a logical '1' and to 0.4 v for a logical '0'. timing measurements are made at 2.0 v for a logical '1' and at 0.8 v for a logical '0'. the ac-testing input/output wave forms are shown below. figure 131 i/o-wave form for ac-test t a = 25 c; v dd = 5 v 5 %, v ss = 0 v, f c = 1 mhz, unmeasured pins returned to v ss . parameter symbol limit values unit min. max. input capacitance, f c = 1 mhz c in 510pf output capacitance c out 8 15 pf i/o c i/o 10 20 pf under device test its05853 = 150 pf c l 2.4 v 0.4 v test points 2.0 v 0.8 v 0.8 v 2.0 v
peb 20550 pef 20550 electrical characteristics semiconductor group 380 01.96 bus interface timing parameter symbol limit values unit min. max. ir or w set-up to ds t dsd 0ns rd -pulse width t rr 80 ns rd -control interval t ri 40 ns port data set-up time to rd xcs t pr 30 ns port data hold time from rd xcs t rp 30 ns data output delay from rd t rd 80 ns data float delay from rd t df 25 ns dma-request delay t drh 65 ns wr -pulse width t ww 45 ns wr -control interval t wi 40 ns data set-up time to wr xcs , ds xcs t dw 30 ns data hold time from wr xcs , ds xcs t wd 15 ns port data delay from wr xcs t wp 100 ns ale-pulse width t aa 30 ns address set-up time to ale t al 10 ns address hold time from ale t la 15 ns ale set-up time to wr , rd t als 8ns address set-up time to wr , rd t as 10 ns address hold time from wr t ah 0ns
peb 20550 pef 20550 electrical characteristics semiconductor group 381 01.96 figure 132 a siemens/intel bus mode itt05855 t ww t wi t dw t wd t wp t drh data data cse/css x wr port 1.0-3 drqta/b (write cycle n-1) p write cycle ad0, d0- ad7, d7 itt05854 t rr t ri t rd t df t drh data cse/css x rd ad0, d0- drqra/b (case n = 32) p read cycle ad7, d7 data t rp t pr p0.0-7, p1.0-4 t drh drqra/b (case n = 4, 8, 16) read cycle 31)
peb 20550 pef 20550 electrical characteristics semiconductor group 382 01.96 figure 132 b siemens/intel bus mode itt05857 address t as t ah dacka/bq address timing, demultiplexed bus mode cse/css x rd cse/css x wr a0-a7, itt05856 address t al t la cse/css x wr cse/css x rd multiplexed address timing t aa t als ale ad0-ad7
peb 20550 pef 20550 electrical characteristics semiconductor group 383 01.96 figure 133 a motorola bus mode itt05859 t dsd t ww t wi t dw t wd t wp t drh data data r/w cse/css x ds d0-d7 port1.0-3 drqta/b (write cycle n-1) p write cycle itt05858 t dsd t rr t ri t drh data r/w cse/css x ds p0.0-7 drqra/b t pr t rp data t rd t df d0-d7 p1.0-4 (case n = 4, 8, 16) drqra/b drh t (case n = 32, read cycle 31)
peb 20550 pef 20550 electrical characteristics semiconductor group 384 01.96 figure 133 b motorola bus mode interrupt timing figure 134 interrupt timing parameter symbol limit values unit min. max. interrupt activation delay t id 100 ns interrupt inactivation delay t iid 120 ns itt05860 t ah t as address dacka or dackb address timing cse/css x ds a0-a7, itt05861 t iid t id hdc/pdc int rd, ds (secondary ista-registers) pdc controls epic and top level interrupts (watchdog and d channel arbiter) *) *) hdc controls sacco interrupts, r
peb 20550 pef 20550 electrical characteristics semiconductor group 385 01.96 reset timing figure 135 resex/resin power-up reset timing figure 136 power-up reset behaviour power-up reset is generated if v dd raises from less than 1 v to more than 3 v. parameter symbol limit values unit min. max. resex-spike pulse width t resp 5ns resex-pulse t repw 1200 ns resin-activation delay t rad 50 ns resin-deactivation delay t rdd 50 ns itt05862 t resp t repw t rad t rdd t t t resex resin pdc itt05863 1 v 3 v 5 v resin t t v dd 1 v 3 v 5 v
peb 20550 pef 20550 electrical characteristics semiconductor group 386 01.96 boundary scan timing figure 137 boundary scan timing parameter symbol limit values unit min. max. test clock period t tcp 160 ns test clock period low t tcpl 80 ns test clock period high t tcph 80 ns tms-set-up time to tck t mss 30 ns tms-hold time from tck t msh 30 ns tdi-set-up time to tck t dis 30 ns tdi-hold time from tck t dih 30 ns tdo-valid delay from tck t dod 60 ns itt05864 t dod t dis t dih t tcp t tcph t tcpl t msh t mss tck tms tdi tdo
peb 20550 pef 20550 electrical characteristics semiconductor group 387 01.96 serial interface timing parameter symbol limit values unit min. max. receive data set-up t rds 20 ns receive data hold t rdh 10 ns collision data set-up t cds 5ns collision data hole t cdh 30 ns transmit data delay t xdd 20 68 ns tristate control delay t rtd 20 85 ns clock period t cp 240 ns clock period low t cpl 90 ns clock period high t cph 90 strobe set-up time to clock t xss 80 t cp - 30 ns strobe set-up time to clock (ext. transp. mode) t xsx 30 t cp - 30 ns strobe hold time from clock t xsh 30 ns transmit data delay from strobe t sdd 90 transmit data high impedance from clock t xcz 65 ns transmit data high impedance from strobe t xsz 50 ns sync pulse set-up time to clock t ss 30 t cp - 30 sync pulse width t sw 40 ns
peb 20550 pef 20550 electrical characteristics semiconductor group 388 01.96 figure 138 serial interface timing itt05865 t rds t rdh t cpl t cp t cph t rds rdh t t xdd t cds t cdh t xdd t rtd t rtd t rtd bus timing bus timing bus timing bus timing mode 1 ccr2 : rds = 1 hdca/b rxda/b rxda/b txda/b cxda/b tsca/b tsca/b mode 2 mode 1 mode 2
peb 20550 pef 20550 electrical characteristics semiconductor group 389 01.96 figure 139 serial interface strobe timing (clock mode 1) note: with rds = 1 the sampling edge is shifted 1/2 clock phase forward. the data is internally still processed with the falling edge. therefore the strobe timing is still relative to the next falling edge in that case. figure 140 serial interface synchronization timing (clock mode 2) itt05866 t xdd t xsz t xcz t xdd t sdd t xsh t xss t xsx bus timing mode 2 mode 1 timing bus hdca/b hfsa/b txda/b txda/b t xcz rxda/b rxda/b ccr2 : rds = 1 t rdh rds t rdh t rds t itt05867 t ss t sw hdca/b hfsa/b
peb 20550 pef 20550 electrical characteristics semiconductor group 390 01.96 pcm and configurable interface timing parameter symbol limit values unit test condition min. max. clock period t cp 240 ns clock frequency 4096 khz clock period low t cpl 80 ns clock period high t cph 100 ns clock period t cp 120 ns clock frequency > 4096 khz clock period low t cpl 50 ns clock period high t cph 50 ns frame set-up time to clock t fs 25 ns frame hold time from clock t fh 50 ns data clock delay t dcd 125 serial data input set-up time t s 7 pcm-input data frequency > 4096 kbit/s serial data hold time from t h 35 ns serial data input set-up time t s 15 ns pcm-input data frequency 4096 kbit/s serial data hold time from t h 55 ns serial data input set-up time t s 20 cfi-input data frequency > 4096 kbit/s serial dta hold time from t h 50 serial data input set-up time t s 0ns cfi-input data frequency 4096 kbit/s serial data hold time from t h 75 ns pcm-serial data output delay t d 55 ns tristate control delay t t 60 cfi-serial data output delay t cdf 65 falling clock edge cfi-serial data output delay t cdr C 90 ns rising clock edge
peb 20550 pef 20550 electrical characteristics semiconductor group 391 01.96 figure 141 configurable interface timing, cmd:csp1,0 = 10 (prescalor divisor = 1) itd05868 1 bit of frame st t fh t fh t fs t fs t fs t fh t fh t cdf t cdr t s t h last bit of frame t cdf t h t s h t s t t s t h s t t h t cp t cpl cph t t fs st 1 bit of frame st 1 bit of frame cdr t cdf t last bit of the frame cdf t t cdr dcd t dcd t dcd t pdc/dcl cmd1 : cmd1, 0 = 01 or 10 pfs fsc (cmd1 : css, csm = 1,0) fsc pfs (pmod : psm = 0; cmd1 : css = 0) dd (cmd2 : cxf = 0) dcl (cmd1 = 0x1000xx) (cmd2 : doc = 1) fsc (cmd2 : fc (2 : 0) = 011) cmd1 : cmd1, 0 = 00 cmd1 : cmd1, 0 = 11 (pmod : psm = 1; cmd1 : css = 0) (cmd1 : css, csm = 1,1) 2 bit of frame nd 3 bit of frame rd du (cmd2 : crr = 0) dd (cmd2 : cxf = 1) du (cmd2 : crr = 1) dd (cmd2 : cxf = 0) du (cmd2 : crr = 0) dd (cmd2 : cxf = 1) du (cmd2 : crr = 1) 1 bit of frame st 1 bit of frame st 1 bit of frame st 1 bit of frame st 1 bit of frame st 1 bit of frame st 1 bit of frame st dd (cmd2 : cxf = 1) du (cmd2 : crr = 0) dd (cmd2 : cxf = 0)
peb 20550 pef 20550 electrical characteristics semiconductor group 392 01.96 figure 142 configurable interface timing, cmd:csp1,0 = 01 (prescalor divisor = 1,5) itd05869 t fs t fh t df t s t h t df t h t s h t s t t s t h s t t h t cp t cpl cph t dr t df t df t t dr dcd t dcd t t fs fh t fh t t fs t fs t fh t dcd 1 bit of frame st last bit of frame st 1 bit of frame 1 bit of frame last bit of the frame pdc/dcl cmd1 : cmd1, 0 = 01 or 10 pfs fsc (cmd1 : css, csm = 1,0) fsc pfs (pmod : psm = 0; cmd1 : css = 0) dd (cmd2 : cxf = 0) dcl (cmd1 = 0x1000xx) (cmd2 : coc = 1) fsc cmd1 : cmd1, 0 = 00 cmd1 : cmd1, 0 = 11 (pmod : psm = 1; cmd1 : css = 0) (cmd : css, csm = 1,1) 2 bit of frame nd 3 bit of frame rd du (cmd2 : crr = 0) dd (cmd2 : cxf = 1) du (cmd2 : crr = 1) dd (cmd2 : cxf = 0) du (cmd2 : crr = 0) dd (cmd2 : cxf = 1) du (cmd2 : crr = 1) 1 bit of frame 1 bit of frame 1 bit of frame st 1 bit of frame 1 bit of frame st 1 bit of frame st 1 bit of frame st dd (cmd2 : cxf = 1) du (cmd2 : crr = 0) dd (cmd2 : cxf = 0) st st st st
peb 20550 pef 20550 electrical characteristics semiconductor group 393 01.96 figure 143 configurable interface timing, cmd:csp1,0 = 00 (prescalor divisor = 2) itd05870 t fh t fs t fh t fh t dr t cr t s t h t dr t h t s h t s t t s t h s t t h t fs dr t dr t dr t t dr dcd t dcd t dcd t cp t cpl t t cph t fs t fs fh t 1 bit of frame st last bit of frame st 1 bit of frame 1 bit of frame last bit of the frame pdc/dcl cmd1 : cmd1, 0 = 01 or 10 pfs fsc (cmd1 : css, csm = 1,0) fsc pfs (pmod : psm = 0; cmd1 : css = 0) dd (cmd2 : cxf = 0) dcl (cmd1 = 0x1000xx) coc = 1 fsc cmd1 : cmd1, 0 = 00 cmd1 : cmd1, 0 = 11 (pmo d : psm = 1; cmd1 : css = 0) (cmd1 : css, csm = 1,1) 2 bit of frame nd 3 bit of frame rd du (cmd2 : crr = 0) dd (cmd2 : cxf = 1) du (cmd2 : crr = 1) dd (cmd2 : cxf = 0) du (cmd2 : crr = 0) dd (cmd2 : cxf = 1) du (cmd2 : crr = 1) 1 bit of frame 1 bit of frame 1 bit of frame st 1 bit of frame 1 bit of frame st 1 bit of frame st 1 bit of frame st dd (cmd2 : cxf = 1) du (cmd2 : crr = 0) dd (cmd2 : cxf = 0) st st st st
peb 20550 pef 20550 electrical characteristics semiconductor group 394 01.96 figure 144 pcm-interface timing itd05871 1 bit of frame st 2 bit of frame nd 3 bit of frame rd t fh t fh t fs t fs t fs t fh t fh t d t t h t t t h t s h t s t t s t h t cp t cpl cph t t fs d t d t pdc pmod : pcr = 0 pfs (pmod : psm = 0) d t s t t t t t t pfs (pmod : psm = 1) txd (pcsr : ure = 1) tsc (pcsr : ure = 1) rxd (pcsr : 'dre' = 0) txd (pcsr : ure = 0) tsc (pcsr : ure = 0) txd (pcsr : ure = 1) tsc (pcsr : ure = 1) rxd (pcsr : 'dre' = 0) txd (pcsr : ure = 0) tsc (pcsr : ure = 0) rxd (pcsr : 'dre' = 1) pmod : pcr = 0 rxd (pcsr : 'dre' = 1) 1 bit of frame st 1 bit of frame st 1 bit of frame st 1 bit of frame st 1 bit of frame st 1 bit of frame st 1 bit of frame st 1 bit of frame st 1 bit of frame st 1 bit of frame st
peb 20550 pef 20550 package outlines semiconductor group 395 01.96 8 package outlines p-mqfp-80-1 (plastic metric quad flat package) gpm05249 sorts of packing package outlines for tubes, trays etc. are contained in our data book "package information" dimensions in mm smd = surface mounted device
peb 20550 pef 20550 appendix semiconductor group 396 01.96 9 appendix 9.1 differences between epic ? -1 (peb 2055) and the elic ? -epic ? ? in demultiplexed address mode the elic registers can (in comparison to the epic-1) additionally be addressed by a4..a0 (see register omdr:rbs). if a4 is connected to ground, the registers are addressed by a3..a0 and rbs. this is compatible to the epic-1. ? the demultiplexed addresses can also be used in multiplexed mode (see register emod:dmxad). ? the elic-epic has 4 pcm modes. pcm mode 3 is similar to pcm mode 1 unlike in pcm mode 1 the pins txd1, txd3 are not tristated, but drive the inverted values of txd0, txd2. ? the error in the double last look logic of the epic-1 up to version a3 (6 bit c/i-channel change in time slot 1 and 3 will not be recognized; see epic errata sheet 02.95) was corrected in elic-epic. ? in preprocessed applications the combination of macr:cmc3..0 = 1010 (for the even cmc address field) is used in downstream direction for the d-channel handling of sacco_a with the arbiter. ? in a double clock rate configuration (clock frequency is twice the data rate), the elic pcm input and output data can be shifted additionally by one pdc clock (see register bits pcsr:drcs and pcsr:adsro). if these two bits are not set, the elic-epic is compatible to the epic-1. this feature guarantees the capability to adapt to a pcm data stream also in double clock rate mode (unlike the epic-1 up to version a3), when the negative pdc edge is used to synchronize pfs. ? the elic is able to generate a 2 mbit/s (pcm and cfi) datastream out of a 2 mhz pcm clock also in cfi mode 0. see register emod:ecmd2. 9.2 working sheets the following pages contain some working sheets to facilitate the programming of the epic-1. for several tasks (i.e. initialization, time slot switching, ...) the corresponding registers are summarized in a way the programmer gets a quick overview on the registers he has to use.
peb 20550 pef 20550 appendix semiconductor group 397 01.96 9.2.1 register summary for epic ? initialization figure 145 a epic ? initialization register summary (working sheet) pcm interface pmod pcm mode register rw, 20 h (0 h + rbs = 1), reset-val. = 00 pmd0..1 = pcm mode, 00 = 0, 01 = 1, 10 = 2 pcr = pcm clock rate: 0 = equal to pcm data rate 1 = double pcm data rate (not for mode 2) psm = pcm synchron mode: 0 = frame synchr. with falling edge, 1 = rising edge of pdc ais0..1 = alternative input section: (pcm mode dependent) mode 0: ais = 0 mode 1: ais0 = 0: rxd1 = in0, ais0 = 1: rxd0 = in0 ais1 = 0: rxd3 = in1, ais1 = 1: rxd2 = in1 mode 2: ais0 = 0 ais1 = 0: rxd3 = in, ais = 1: rxd2 = in aic0..1 = alternative input comparison: (pcm mode dependent) mode 0, 1: aic0 = 0: no comparison, aic0 = 1: rxd0 == rxd1 aic1 = 0: no comparison, aic1 = 1: rxd2 == rxd3 mode 2: aic0 = 0: aic1 = 0: no comparison, aic1 = 1: rxd2 == rxd3 pbnr pcm bit number register rw, 22 h (1 h + rbs = 1), reset-val. = ff bnr0..7 = bit number per frame (mode dependent) mode 0: bnr = number of bits C 1 mode 1: bnr = (number of bits)/2 C 1 mode 2: bnr = (number of bits)/4 C 1 pmd pcr psm ais aic bnr
peb 20550 pef 20550 appendix semiconductor group 398 01.96 figure 145 b epic ? initialization register summary (working sheet) pofd pcm offset downstream register rw, 24 h (2 h + rbs = 1), reset-val. = 0 ofd2..9 = offset downstream (see pcsr for ofd0..1) mode 0: (bnd C 17 + bpf) mod bpf --> ofd2..9 mode 1: (bnd C 33 + bpf) mod bpf --> ofd1..9 mode 2: (bnd C 65 + bpf) mod bpf --> ofd0..9 bnd = number of bits + 1 that the downstream frame start is left shifted relative to the frame sync bpf = number of bits per frame unused bits must be set to 0 ! pofu pcm offset upstream register rw, 26 h (3 h + rbs = 1), reset-val. = 0 ofu2..9 = offset upstream (see pcsr for ofu0..1) mode 0: (bnd + 23 + bpf) mod bpf --> ofu2..9 mode 1: (bnd + 47 + bpf) mod bpf --> ofu1..9 mode 2: (bnd + 95 + bpf) mod bpf --> ofu0..9 bnd = number of bits + 1 that the upstream frame is left shifted relative to the frame start bpf = number of bits per frame unused bits must be set to 0 ! pcsr pcm clock shift register rw, 28 h (4 h + rbs = 1), reset-val. = 0 ofd0..1 = offset downstream (see pofd) dre = downstream rising edge, 0 = receive data on falling edge, 1 = receive data on rising edge ofu0..1 = offset upstream (see pofu) ure = upstream rising edge, 0 = send data on falling edge, 1 = send data on rising edge ofd9..2 ofu9..2 0 ofd1..0 dre 0 ofu1..0 ure
peb 20550 pef 20550 appendix semiconductor group 399 01.96 figure 145 c epic ? initialization register summary (working sheet) cfi interface cmd1 cfi mode register 1 rw, 2c h (6 h + rbs = 1), reset-val. = 00 css = clock source select, 0 = pdc/pfs used for cfi, 1= dcl/fsc are inputs csm = cfi synchronization mode: 1 = frame syncr. with rising edge, 0 = falling edge of dcl if css = 0 ==> cmd1:csm = pmod:psm ! csp0..1 = clock source prescaler: 00 = 1/2, 01 = 1/1.5, 10 = 1/1 cmd0..1 = cfi mode: 00 = 0, 01 = 1, 10 = 2, 11 = 3 cis0..1 = cfi alternative input section mode 0, 3: cis0..1 = 0 mode 1, 2: cis0: 0 = in0 = du0, 1 = in0 = du2 mode 1: cis1: 0 = in1 = du1, 1 = in1 = du3 cmd2 cfi mode register 2 rw, 2e h (7 h + rbs = 1), reset-val. = 00 for iom ? -2 cmd2 can be set to d0 h fc0..2 = framing signal output control (cmd1:css = 0) = 010 suitable for pbc, = 011 for iom-2, = 110 iom-2 and sld coc = clock output control (cmd1:css = 0) = 0 dcl = data rate, = 1 dcl 2 data rate (only mode 0 and 3 !) cxf = cfi transmit on falling edge: 0 = send on rising edge, 1 = send on falling dcl edge crr = cfi receive on rising edge: 0 = receive on falling edge, 1 = send on rising dcl edge cbn8..9 = cfi bit number (see cbnr) cbnr cfi bit number register rw, 30 h (8 h + rbs = 1), reset-val. = ff cbn0..7 = cfi bit number per frame C 1 (see cmd2:cbn8..9) css csm csp1..0 cmd1..0 cis1..0 fc2..0 coc cxf crr cbn9..8 cbn
peb 20550 pef 20550 appendix semiconductor group 400 01.96 figure 145 d epic ? initialization register summary (working sheet) ctar cfi time slot adjustment register rw, 32 h (9 h + rbs = 1), reset-val. = 00 tsn0..6 = (number of time slots + 2) the du and dd frame is left shifted relative to frame start (see also cbsr) cbsr cfi bit shift register rw, 34 h (a h + rbs = 1), reset-val. = 00 cds2..0: cfi downstream/upstream bit shift shift du and dd frame: 000 = 2 bits right 001 = 1 bit right 010 = 6 bits left 011 = 5 bits left 100 = 4 bits left 101 = 3 bits left 110 = 2 bits left 111 = 1 bit left relative to pfs (if cmd1:css = 0) relative to fsc (if cmd1:css = 1) cscr cfi subchannel register rw, 36 h (a h + rbs = 1), reset-val. = 00 sc3 0..1 control port 3 (+ port 7 for cfi mode 3 (sld)) sc2 0..1 control port 2 (+ port 6 for cfi mode 3 (sld)) sc1 0..1 control port 1 (+ port 5 for cfi mode 3 (sld)) sc0 0..1 control port 0 (+ port 4 for cfi mode 3 (sld)) for 64 kbit/s channel: 00/01/10/11 = bits 7..0 for 32 kbit/s channel: 00/10 = bits 7..4, 01/11 = bits 3..0 0tsn 0 cds2..0 cus3..0 cs3 cs2 cs1 cs0
peb 20550 pef 20550 appendix semiconductor group 401 01.96 9.2.2 switching of pcm time slots to the cfi interface (data downstream) figure 146 switching of pcm time slots to the cfi interface (working sheet) itd08110 data memory pcm ts elic, r epic r 0....... maar cfi port, ts madr . . . . . . . . pcm port, ts switching command 01110001 macr switching of 8 bit channels: 1 10= 1 1 = 7, 6 0010= = 1 1 0 0 macr . . . . 1 1 1 0 ........ madr maar . . . . . . . 0 = 1 0 00= 5, 4 3, 2 1, 0 loop 0 output disable cfi ts loop direct switching of subchannels: 01 01 01 01 switched ts width and pcm bit position ........ cscr 3 2 1 0 cfi port 0 0 = 7 ... 4 or 7, 6 (default for d channel) = 01 = 10 = 11 cfi bit position writing 8 bit cfi idle codes by the mp : macr 1 0 0 1 1 1 1 0 write value to cm data value of idle code (w) ........ madr maar . . . . . . . 0 0....... maar madr . . . . . . . . value of idle code (r) read value to cm data 11001000 macr reading back a previously written 8 0....... maar select 01111001 macr reading pcm data switched to cfi: 0....... maar madr . . . . . . . . value (r) read data memory: 1....000 macr position and bit ts width desired tristating a cfi output ts: 0....... maar 01110000 macr port maar . . . . . x madr ts ts madr x.... .. maar . . . . . . x ts ts madr x....... maar p access switching command p access cfi + pcm mode 0 pcm mode 1 cfi mode 1 cfi + pcm mode 2 . for madr/maar setings see loewr box for madr/maar setings see loewr box . cfi port, ts pcm port, ts ... ... 3 ... 0 or 5, 4 ... 7 ... 4 or 3, 2 ... 3 ... 0 or 1, 0 ... 7 ... 4 3 ... 0 ... . for maar setings see lower box cfi port, ts cfi port, ts pcm port, ts pcm port, ts bit cfi idle codes by the mp : cfi port, ts 3 ... 0 7 ... 4 1 0 1 0 1 0 1 0 1, 0 3, 2 5, 4 = 0 0 01= 0011= = 0 1 0 0 7, 6 = 1 1 = 0 1 = 1 0 0 0 7 ... 0 port port select p access . ...
peb 20550 pef 20550 appendix semiconductor group 402 01.96 9.2.3 switching of cfi time slots to the pcm interface (data upstream) figure 147 switching of cfi time slots to the pcm interface (working sheet) itd08111 data memory pcm ts elic, r epic r 1....... maar cfi port, ts madr . . . . . . . . pcm port, ts switching command 01110001 macr switching of 8 bit channels: 10= 1 1 = 7, 6 0010= = 1 1 0 0 macr . . . . 1 1 1 0 ........ madr maar . . . . . . . 1 = 1 0 00= 5, 4 3, 2 1, 0 loop cfi ts loop direct switching of subchannels: 01 01 01 01 switched ts width and pcm bit position ........ cscr 3 2 1 0 cfi port 0 0 = 7 ... 4 or 7, 6 (default for d channel) = 01 = 10 = 11 cfi bit position enable/tristate pcm output ts: macr 0 0 0 command select bit position .... madr maar . . . . . . . 1 writing/reading back pcm idle codes and reading switched cfi data: 1....... maar madr . . . . . . . disable switching connection 0111 000 macr position and bit ts width desired reading a cfi ts by the mp (no connection to pcm): 1....... maar 0111 00 macr port maar . . . . . x madr ts ts madr x.... .. maar . . . . . . x ts ts madr x....... maar p access switching command access p select cfi + pcm mode 0 pcm mode 1 cfi mode 1 cfi + pcm mode 2 . for madr/maar setings see loewr box for madr/maar setings see loewr box . cfi port, ts pcm port, ts 3 ... 0 or 5, 4 7 ... 4 or 3, 2 3 ... 0 or 1, 0 7 ... 4 3 ... 0 . for maar setings see lower box cfi port, ts 3 ... 0 7 ... 4 1 0 1 0 1 0 1 0 1, 0 3, 2 5, 4 = 0 0 01= 0011= = 0 1 0 0 7, 6 = 1 1 = 0 1 = 1 0 0 0 7 ... 0 1 0 enable/ disable pcm port, ts 1111 . . . . 7, 6 3, 2 1, 0 4, 5 0 0 = tristate 1 = driver enabled 1 0 = one ts 0 0 1 = 1 1 = all ts 1 pcm port, ts macr 0 0 0 . . . . read/write data memory value or idle code ........ madr maar . . . . . . . 1 cfi port, ts pcm port, ts 1 0 . = 1 = read cfi value 0 = write idle code read back idle code for writing idle codes, connection to neccessary only exists! pcm ts already if a for maar setings see lower box . madr . . . . . . . . ts value (r) 11 cfi port, ts maar . . . . . . . 1 1 macr 0 0 10 read value to cm data 00 1 port port . . . .
peb 20550 pef 20550 appendix semiconductor group 403 01.96 9.2.4 preparing epic ? s c/i channels figure 148 preparing epic ? s c/i channels (working sheet) itd08112 c/i-fifo cm data pointer data memory pcm ts elic, r epic r cfi mode 0 iom -2 r 0...1..0 maar port iom -2 channel r madr 1 1 . . . . . . c/i idle code mode selection 0111.... macr 1 1 4 bit c/i 6 bit c/i initialization of the c/i channels data downstream: d c/i 1 0 0 0 = decentral central = 0 1 0 1 = 0 1 0 1 elic sacco-a = 0 1 0 1 6 bits analog c/i 10= 1 1 = pcm ts bit 7, 6 01xx= = 1 1 0 1 macr . . . . 1 1 1 0 mode selection pcm port, ts 0....... madr port maar 1 . . 1 . . . 0 = 1 0 00= 1 0 1 1 = analog c/i = 1 1 0 1 r r elic sacco-a only for central d channel handling ! elic sacco-a r r 0000= analog c/i = 0 1 0 1 = 0 0 01= 1...1..1 maar port madr . . . . . . . 1 pcm port, ts mode selection 0111.... macr 0000= = x x 1 0 pcm ts bit 7, 6 = 1 1 = 0 1 6 bit analog c/i 1 0 0 0 = elic sacco-a 1010= 1000= = 0 0 0 1 initialization of the c/i channels data upstream: expected c/i-value macr . . . . 1 1 1 0 mode selection c/i idle code ......11 madr port maar 0 . . 1 . . . 1 expectend c/i value ......11 madr only analog 6 bit c/i handling ! r iom -2 channel d channel handling d channel handling d channel handling d channel handling central decentral d channel handling ! only for central decentral central d channel handling d channel handling decentral central d channel handling d channel handling d channel handling d channel handling d channel handling iom -2 channel r pcm ts bit 5, 4 pcm ts bit 3, 2 pcm ts bit 1, 0 iom -2 channel r pcm ts bit 5, 4 pcm ts bit 3, 2 pcm ts bit 1, 0
peb 20550 pef 20550 appendix semiconductor group 404 01.96 9.2.5 receiving and transmitting iom ? -2 c/i-codes figure 149 receiving and transmitting iom ? -2 c/i-codes (working sheet) itd08113 0...1..0 maar port iom -2 channel r madr 1 1 . . . . . . c/i value (w) write command 01001000 macr 1 1 4 bit c/i 6 bit c/i value transmitting a c/i code on iom -2 data downstream: receiving a c/i code on iom -2 data upstream: c/i-fifo 1. ... 2. ... 3. ... iom -2 frame r b1 b2 m c/i b1 b2 m c/i r iom -2 channel c/i change detected interrupt : ista : sfi read cfifo and copy value to maar 6 bit c/i value 4 bit c/i value macr 0 0 0 1 0 0 1 1 read command c/i value (r) ......11 madr c/i fifo port maar . . 1 . . . 1 c/i d r iom -2 cfi mode 0 r epic r elic, pcm ts data memory pointer cm data c/i-fifo r r iom -2 channel r 4 bit c/i value : 0 6 bit c/i value : 1
peb 20550 pef 20550 appendix semiconductor group 405 01.96 9.3 development tools the sipb 5000 system can be used as a platform for all development steps. in a later stage it is of course necessary to make a cost optimized design. for this, a subset of the board design can be used. all the wiring diagrams are shipped with the board to speed up this process. siemens offers a very convenient menu driven testing and debugging software. the package that is delivered with the user board, allows a direct access to the chip registers using symbolic names. subsequent access may be written to a file and run as a track file. example track files are delivered in the package and will be a great help to the user. 9.3.1 sipb 5000 mainboard figure 150 the sipb 5000 mainboard is the general backbone of the sipb 5xxx user board system. it is designed as a standard pc interface card, and it contains basically a 80c188 cpu system with 7 interfaces. the interface to the pc is realized both as a dual port ram and as an additional dma interface. up to three daughter modules (see dotted blocks) can be added to the mainboard. they typically carry the components under evaluation. the interfaces which are accessible from the back side of the pc have a connection to the daughter modules as well. this is to allow access to the components under evaluation while the complete board system is hidden inside the pc. description part number ordering code sipb mainboard sipb 5000 q67100-h8647 itb05758 system 80c188 cpu sac 1 sac 2 sac 3 amc 3 amc 2 ram interface amc 1 dual port pc
peb 20550 pef 20550 appendix semiconductor group 406 01.96 9.3.2 sipb 5122 iom ? -2 line card module (elic ? ) figure 151 the line card module sibp 5122 is designed to be used with the isdn user board sipb 5000. it serves as an evaluation tool for various line card architectures using the extended line card interface controller elic peb 20550. possible applications are e.g.: C centralized / decentralized d-channel handling of signaling and packet data C emulation of a pabx with primary rate module sipb 7200 C emulation of a small pabx using two line cards C emulation of a digital or analog line card using appropriate layer-1 and/ or codec filter modules description part number ordering code iom-2 line card module (elic) sipb 5122 q67100-h6397 itb05760 elic peb 20550 amc sac amc hscx sab 82525 pcm sld/iom /pcm amc sac r r
peb 20550 pef 20550 lists semiconductor group 407 01.96 10 lists 10.1 glossary arcofi ? audio ringing codec filter bpf bits per pcm frame cfi configurable interface cm control memory co central office dcl data clock elic ? extended line interface controller epic ? extended pcm interface controller etsi european telecommunication standards institute fifo first-in first-out (memory) fsc frame synchronisation clock hdcb hdlc data clock channel b hdlc high-level data link control ic integrated circuit id identifier iom ? isdn oriented modular isac ? -p isdn subscriber access controller on u-interface octat ? -p octal transceiver for u pn -interfaces pbc peripheral bus controller pbx private branch exchange pcm pulse code modulation pdc pcm interface data clock pfs pcm interface frame synchronisation rhr reset hdlc receiver rmc receive message complete rme receive message end sabme set asynchronous balanced mode extended sacco special applications communications controller te terminal equipment ui unnumbered information frame u pn u-interface in private network (pbx)


▲Up To Search▲   

 
Price & Availability of PEB20550

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X